Learn how to integrate lottie animations into your android app effortlessly.
Go to your project settings → `"`Package Dependencies`"`
Add: https://github.com/rive-app/rive-ios.git
import RiveRuntime
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let riveView = RiveViewModel(fileName: "your_animation", stateMachineName: "State Machine 1")
let riveUIView = riveView.createRiveView()
riveUIView.frame = CGRect(x: 100, y: 100, width: 150, height: 150)
view.addSubview(riveUIView)
}
}
riveView.setInput("TriggerName", value: true)
Find free animations at Unicornicons.