BOCircleProgressView is used to display completion percentage in a circular (ring-like) component. You can change the color, size and with of the circular progress indicator and initialize it either from Storyboard or from the code.
BOCircleProgressView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'BOCircleProgressView'
Create a view in Storyboard and assign it BOCircleProgressView
class, or initialize BOCircleProgressView
view from code (with given frame).
To update percentage use updateProgress(progress: CGFloat)
function, with parameter values between 0 and 1.
You can change:
barColor
(color of the background circle layer)progressColor
(color of the progress layer)progressLabelColor
(color of the label displaying the percentage)progressLabelFont
(font of the label displaying the percentage)invalidPercentageText
(text that appears if the percentage value is negative; defaults to N/A)width
(ring width)
BOCircleProgressView is available under the MIT license. See the LICENSE file for more info.