Skip to content

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.

License

Notifications You must be signed in to change notification settings

jelenakrmar/circle-progress-view

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks