如何从特定起点开始 Lottie 动画?

How can I start a Lottie animation from a specific starting point?

假设 Lottie animation 总共 duration 为 30 秒。

如何从 15 秒标记而不是开始标记开始 animation

我在文档中没有找到任何与此相关的内容。

我目前正在尝试使用此代码来完成此操作:

animationView.play()
animationView.isHidden = true 

DispatchQueue.main.asyncAfter(deadline: .now() + 15 { 
   animationView.isHidden = false 
}

唯一的问题是用户执行和动画显示之间的等待时间。

看:

animationView.play(fromFrame:, toFrame:, withCompletion:)

animationView.play(fromProgress:, toProgress:, withCompletion:)