/circularprogressview

Customisable circular progress view written in Swift.

Primary LanguageSwiftMIT LicenseMIT

CircularProgressView

CircularProgressView is a customisable circular progress view written in Swift.

CircularProgressView Preview

Requirements

  • iOS 8.x
  • Xcode 6
  • Swift 2

Installation

Copy CircularProgressView into your project.

Getting Started

  1. Create an instance from CircularProgressView either in code or directly in storyboard.
  2. Customize CircularProgressView for your needs (see Attributes).
  3. call setProgress(animated:) to set the new progress with or without animation.

Attributes

  • backgroundShapeColor: The progress views background color.
  • progressShapeColor: The progress color.
  • lineWidth: The line width of the background shape.
  • inset: The inset of the progress shapes line width. The default value is 0 which means that the progressShape is as thick as the background shapes lineWidth.
  • lineCap: Specifies the line cap for the progress shape (butt, round or square).

All attributes (except lineCap) can be edited directly in Interface Builder.

Edit Attributes in Interface Builder

License

CircularProgressView is release under an MIT License.