Swift 5 Add A Lottie?

Mario tsai
2 min readSep 21, 2020

iOS app always need cool animation



Step1. pod Lottie

Step2. import Lottie


Step3. create a UIView for Lottie

Step4. Add a Lottie Json into your project


Step5. In swift file, annonce a var.(ex. var lottie = Animation(named: ))

Step6. Setup Animation like below picture

Step7. Your announce var.play()

ps. 播放的相關設定下一篇文章告訴大家 (advance setting for next article)



Mario tsai

Major in physical education. Football referee. And high interest in looking the world through the numbers.