Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lottie files with text don't play on Xamarin.iOS #306

Open
1 of 7 tasks
paulmckee opened this issue Dec 16, 2020 · 2 comments
Open
1 of 7 tasks

Lottie files with text don't play on Xamarin.iOS #306

paulmckee opened this issue Dec 16, 2020 · 2 comments

Comments

@paulmckee
Copy link

🐛 Bug Report

Some valid Lottie animations don't play back at all in LOTAnimationView on Xamarin.iOS. Based on limited data, it appears to be those that contain text.

Here is an example of a file that doesn't play back. This was exported from After Effects:
tap-a-topic-EN.json.txt (File renamed with .txt extension to allow it to be attached here.)
For this file, the animator created a text string and animated it to give a throbbing effect every 6 seconds. This file plays fine in other contexts like, for example, this previewer.

By contrast, here is another file that was also exported from After Effects. This one should look exactly the same as the one above, but in this case the animator converted the text to vector shapes. This file plays back perfectly using LottieXamarin:
tap-a-topic-EN-shape-layer.json.txt

Note: I see that the readme has a list of Supported After Effects Features, and I don't see anything there about text. Is it possible that text in Lottie files is just not supported?

Expected behavior

Any value Lottie file should be played back correctly.

Reproduction steps

  1. Create a Xamarin.iOS project for iPad in VS 2019
  2. Use NuGet to add Com.Airbnb.iOS.Lottie
  3. In a view controller, instantiate a LOTAnimationView, load the Lottie file, and add it to the visual tree. I used the following code
                LOTAnimationView animation = LOTAnimationView.AnimationWithFilePath(pathToLottieAnimation);
                animation.Frame = new CGRect(0, 0, 610, 50);
                animation.ContentMode = UIViewContentMode.ScaleAspectFit;
                animation.LoopAnimation = true;
                container.AddSubview(animation);
                animation.Play();
  1. Run the application
  2. Look at the screen

Configuration

Version: Com.Airbnb.iOS.Lottie 2.5.13

Platform:

  • 📱 iOS (specifically, iPad)
  • 🤖 Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • 🐒 Xamarin.Forms
@dlaundavgn
Copy link

Is this something that will be prioritized to be fixed? Have you heard anything back, @paulmckee?

@paulmckee
Copy link
Author

Have you heard anything back, @paulmckee?

Nope, @dlaundavgn, I never have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants