A circular progress view for iOS implemented in Swift.
- Autoresizes proportionally and centers to fit view
- Change track color, and progress color
- Adjustable track width
Simply add CircularProgressView.swift in your project. Then either create an instance of CircularProgressView using code or Interface Builder.
let rectProgressView = CGRect(x: 40, y: 40, width: 100, height: 100)
let progressView = CircularProgressView(frame: rectProgressView, trackWidth: 10, progress: 0.85)
view.addSubview(progressView)
progressView.progress = 0.75
progressView.trackWidth = 5.0
progressView.trackColor = UIColor.darkGrayColor()
progressView.progressColor = UIColor.progressColor()
Just use custom UIView subclass CircularProgressView on UIView in Interface Builder. Its properties can be changed in IB too.