question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[IOS] Disable animation loop

See original GitHub issue

Exists for android lottie_loop prop, how can i disable it for ios?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
hungnq139commented, Jul 3, 2021

@TheOmran : in Dynamic.swift replace play function with

@objc func play(animationView: AnimationView) { animationView.play(fromProgress: 0.0, toProgress: 1.0, loopMode: LottieLoopMode.loop, completion: { (success) in RNSplashScreen.setAnimationFinished(true) } ); }

0reactions
vfa-locltbcommented, Jun 14, 2022

@TheOmran : in Dynamic.swift replace play function with @objc func play(animationView: AnimationView) { animationView.play(fromProgress: 0.0, toProgress: 1.0, loopMode: LottieLoopMode.loop, completion: { (success) in RNSplashScreen.setAnimationFinished(true) } ); }

@vfa-locltb it doesn’t work ?

Sorry, I thought this was an android thread, I got it figured out now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ways to Stop Animation from Looping in Unity
Go to the animation folder where you've created the animation and click the New Animation icon as shown below. ... Now, you have...
Read more >
setAnimationsEnabled(_:) | Apple Developer Documentation
Animations are enabled by default. If you disable animations, code inside subsequent animation blocks is still executed but no animations actually occur.
Read more >
SwiftUI: Stop an Animation that Repeats Forever
I figured it out! An animation using .repeatForever() will not stop if you replace the animation with nil . It WILL stop if...
Read more >
How to Disable iOS System Animations to Speed up Your ...
Check out this short video guide on enabling the glitch that will help eliminate iPhone and iPad animations.
Read more >
Disable Animations in iOS with a Bug | OSXDaily
Yes, a bug (as in a software glitch) in iOS can disable the animations, temporarily anyway. The obvious problem with this approach is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found