Baseflow / LottieXamarin

Render After Effects animations natively on Android, iOS, MacOS and TvOS for Xamarin
https://baseflow.com
Apache License 2.0
1.21k stars 261 forks source link

Duration not set in Xamarin iOS #353

Open nbloms opened 2 years ago

nbloms commented 2 years ago

Hi,

I've created a AnimationView and would like to use the Duration property of the AnimationView after it's been created (in order to wait for the animation to complete) but it is always 0. I checked the ViewRenderer and saw that there are some code there related to the Duration property that is commented. Is this a dead property? Is there any way to find out how long a animation is programmatically? I would prefer to have this information in the code than having to know how long an animation is beforehand.

Thanks!