Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.04 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.04 KB

Easy to use CircularProgressBarView 2021

Simple UIKIt Circular Progress Bar, Reuploaded (RIP Stars :c)

Eample Usage

Usage Example

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var CircularProgress: CircularProgressView!

    override func viewDidLoad() {
        super.viewDidLoad()
        CircularProgress.setprogress(0.4, UIColor.blue, "13", "A")
        CircularProgress.animate(0.9, duration: 2)
    }
}

Customizable Properties

    /// circle line width
    var lineWidth: Double  = 20
    /// Text inside the circle line 1
    var title : String = ""
    /// Text inside the circle line 2
    var subtitle : String = ""
    /// Circle foregroundColor
    var color: UIColor = UIColor.blue
    /// Circle backgroundColor
    var Backgroundcolor: UIColor = UIColor.white
    ///0.0 - 1.0
    var progress: Double = 0.5
    /// circle radius
    var radius: Int = 60
    /// backgroundColor - gray background for the circular shape
    var shouldDrawBackground = false