Swift 5 Add A Lottie?

iOS app always need cool animation

畫面生動有趣,動畫絕對是好幫手。

七個步驟讓你使用好Lottie。

Step1. pod Lottie

Step2. import Lottie

Lottie

Step3. create a UIView for Lottie

Step4. Add a Lottie Json into your project

推薦自己製作索引來使用不同的Lottie

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)

--

--

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mario tsai

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