实战需求
SwiftUI 动画之图片360度旋转动画
本文价值与收获
看完本文后,您将能够作出下面的界面
截屏2021-01-13 上午10.59.24.png
Jietu20210113-110036.gif
看完本文您将掌握的技能
- 旋转效果.rotationEffect(.degrees(zRotateAnimation ? 360 : 0))
- 动画效果 .animation(Animation.linear(duration: 1).repeatForever(autoreverses: true),value: self.zRotateAnimation)