RAProgressRing 是最简单的方法,可以用最少的代码在应用程序中实现循环进度
RAProgressRing
RAProgressRing 是使用最少的代码在应用程序中实现循环进度的最简单方法。
特征
- 可以使用@IBInspectable进行自定义
- Set ring width, track and progress color.
- Animate the progress based on needed duration.
Example (Programatically)
@IBOutlet var progressRing: RAProgressRing!
Change settings:
progressRing.trackColor = .red.withAlphaComponent(0.25)
progressRing.circleColor = .red
progressRing.animationDuration = 3
Animate:
progressRing.setProgress(1, animated: true)