How to animate drawing in Swift, but also change a UIImageView's scale?

后端 未结 3 1430
迷失自我
迷失自我 2021-01-01 07:03

I\'d like to animate a drawing sequence. My code draws a spiral into a UIImageView.image. The sequence changes the image contents, but also changes the scale

3条回答
  •  清歌不尽
    2021-01-01 08:01

    Personally, in more complicated animations I would use lottie the animation itself is built with Adobe After Effect and exported as a JSON file which you will manage using the lottie library this approach will save you time and effort when you port your app to another platform like Android as they also have an Android Lottie which means the complicated process of creating the animation is only done once.

    Lottie Files has some examples animations as well for you to look.

提交回复
热议问题