title: How to play a lottie animation once then loop from frame to frame in iOS/Swift/Xcode?
body: <p>I'm looking for a solution to play one part of my animation once but the other half on loop while using Lottie Files in Xcode. I think there is method in JS method playSegments() which can solve this problem but I would like to code this in swift.</p>
  <p>I found a similar problem, but for JS: <a href="https://github.com/airbnb/lottie-web/issues/579" rel="nofollow noreferrer">https://github.com/airbnb/lottie-web/issues/579</a></p>
  <p>This is what I tried but it's not working as I expected: <img src="https://i.stack.imgur.com/RTA2L.png" alt="MY_ATTEMPT" /></p>