Lottie-ios: Swift 4.2

Created on 17 Mar 2019  Â·  15Comments  Â·  Source: airbnb/lottie-ios

Congrats on the new release/rewrite! Setting it up now to test it out!

Quick question, I noticed it's built for Swift 4, and on first glance Swift 4.2 would only require some renames/auto-fixes. I'm assuming this was intentional?

If not, I'd be happy to put a PR up with Swift 4.2 changes.

Thanks again!

Most helpful comment

Migrated to 4.2 and should be available in the next release. Cheers!

https://github.com/airbnb/lottie-ios/pull/793

All 15 comments

it doesn't work for Swift 4.2 now. it was working fine a few days ago.

+1
My issue was just dumped https://github.com/airbnb/lottie-ios/issues/787 🙄

When I try to install the new 3.0 with pod install in Terminal it always installs 2.5.2 again. What am I doing wrong. In my Pod File I call pod 'lottie-ios' Thanks for helping

When I try to install the new 3.0 with pod install in Terminal it always installs 2.5.2 again. What am I doing wrong. In my Pod File I call pod 'lottie-ios' Thanks for helping

try pod repo update, or specify the pod version when you do pod install.

The problem is the latest release does not work for Swift4.2

Thanks it worked with pod 'lottie-ios', '3.0.0'

The problem is the latest release does not work for Swift4.2

What exactly does not work with Swift 4.2

What exactly does not work with Swift 4.2

Compiling^^

It can be compiled in 4.0 and used in 4.2 perfectly fine. You just need to specify 4.0 in the framework’s compile settings.

Screen Shot 2019-03-18 at 8 39 55 AM

On Mar 18, 2019, at 08:03, tfonfara notifications@github.com wrote:

What exactly does not work with Swift 4.2

Compiling^^

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@buba447 I did, but at least for me this leads to crashes if I use it same way as I did before, just update the breaking changes.
Starting with the usage in nib files, AnimationView cannot be picked here (module always resets to empty which is quite annoying, in previous version this worked as is should) and if I select the module by hand the "xcode agent" crashes. Even if I ignore this (this agent should only be necessary for updating nibs and storyboards with IBDesignables) it crashes at runtime when setting animation property.
I reverted back to latest 2.x version as this looks to me more as a beta version than production ready.

@tfonfara These issues seem to be separate issues from swift language version. Please file individual tickets for these so that they may be addressed.

@tfonfara As far as setting from the nib. Im not having trouble over here selecting the module or the class. Maybe cleaning would help? If you can provide more information in a separate ticket id love to get to the bottom of your problems.

Screen Shot 2019-03-18 at 8 43 56 AM

Migrated to 4.2 and should be available in the next release. Cheers!

https://github.com/airbnb/lottie-ios/pull/793

@buba447 thanks! You're the best!

Yep, same issue here + there is an additional warning
something about "Project settings" update in Xcode.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ricardohochman picture ricardohochman  Â·  4Comments

rajeshbeats picture rajeshbeats  Â·  3Comments

amannayak0007 picture amannayak0007  Â·  3Comments

loganblevins picture loganblevins  Â·  3Comments

MaximKeegan picture MaximKeegan  Â·  3Comments