Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.73 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.73 KB

BOCircleProgressView

Version License Platform

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.

Installation

BOCircleProgressView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BOCircleProgressView'

Usage

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)

License

BOCircleProgressView is available under the MIT license. See the LICENSE file for more info.