Skip to content

khanxc/KXThumbCircularProgressBar

Repository files navigation

KXThumbCircularProgressBar

A Circular progress bar with a progress thumb(icon) written in pure Swift. Customise your own thumb images to the Circular progress bar.

Alt Text

Alt Text

Alt Text

Alt Text

Features

  • Customise thumb images
  • Increase/decrease the width of inner/outer ring
  • Customize inner/outer ring colors
  • Customize Start / End angle
  • Add Image / Text (with unit of measurement) at the centre
  • Animating text

Requirements

  • iOS 8.0+
  • Xcode 7.3

Installation

Cocoapods

You can use CocoaPods to install KXThumbCircularProgressBar by adding it to your podfile

    pod 'KXThumbCircularProgressBar', '~> 0.0.6'

And import the header and use it in the ViewController where you want to use this framework

  import KXThumbCircularProgressBar

Drag and drop a UIView in your storyboard and change the class of UIView like below

Alt Text

Create the IBOutlet and initiate the progress animation

  @IBOutlet weak var kx: KXThumbCircularProgressBar!

  override func viewDidLoad() {
        super.viewDidLoad()
        kx.animateScale = 0.75 //value between 0 to 1
    } 

To Do & Progress

  • Enabling this framework programmatically

License

Distributed under MIT license. Please see LICENSE file.