A set of progress views written in Swift.
- iOS 10.0+
- Swift 4
pod 'SwiftProgressView'
github "DerekCoder/SwiftProgressView"
import SwiftProgressView
let frame = CGRect(x: 100, y: 100, width: 100, height: 100)
let progressView = ProgressPieView(frame: frame)
view.addSubview(progressView)
progressView.setProgress(1.0, animated: true)
- Drag UIView & Set Class
- Change Attributes
ProgressRingView
- The class for ring progress viewProgressViewPieView
- The class for pie progress viewprogress
- 0.0 ~ 1.0, readonly. Support IBInspectableobservedProgress
- The progress object to use for updating the progress viewcircleLineWidth
- The width of outer circle. Support IBInspectablecircleColor
- The color of outer circle. Support IBInspectableprogressColor
- The color of inner circle. Support IBInspectableanimationDuration
- The duration of animation. Support IBInspectableprogressLineWidth
- The width of inner circle, only for ProgressRingView. Support IBInspectableisShowPercentage
- Indicate whether percentage lable is displayed or not, only for ProgressRingView. Support IBInspectablepercentageFontSize
- The font size of percentage label, only for ProgressRingView. Support IBInspectablepercentageColor
- The color of percentage label, only for ProgressRingView. Support IBInspectablespacing
- The spacing of outer and inner circle, only for ProgressPieView. Support IBInspectablesetProgress(_ progress: CGFloat, animated: Bool)
- The method to change progress with animation or not.
- Blog
- Email: derekcoder@gmail.com
SwiftProgressView is released under the MIT license. See LICENSE for details.