MBCircularProgressBar

repository·master·Indexed 21 days ago

https://github.com/matibot/mbcircularprogressbar

An Objective-C library for creating customizable circular progress bars in iOS applications. It supports configuration of colors, fonts, line widths, and animations, and can be installed via CocoaPods, Carthage, or manual integration.

Tokens
475
Snippets
3
Records
5
Agent score
27%

What's inside MBCircularProgressBar

  1. Install MBCircularProgressBar via Carthage

    master

    To use Carthage, first ensure it is installed via Homebrew:

    $ brew update
    $ brew install carthage

    Then, add the following line to your Cartfile:

    github "MatiBot/MBCircularProgressBar"

    Run carthage update to build the framework, then drag the resulting MBCircularProgressBar.framework into your Xcode project.

  2. Configure MBCircularProgressBar properties

    master

    The progress bar can be customized using several properties. Key properties include:

    • value: The current value to display (Range: [0, maxValue]).
    • maxValue: The maximum possible value used to calculate progress.
    • showValueString: Boolean to toggle visibility of the value text.
    • showUnitString: Boolean to toggle visibility of the unit text.
    • unitString: The string representing units (e.g., %).
    • progressColor: The color of the progress bar.
    • progressLineWidth: The width of the progress bar.
    • progressCapType: The shape of the progress bar cap (kCGLineCapButt=0, kCGLineCapRound=1, kCGLineCapSquare=2).
    • textOffset: CGPoint offset for the unit/value text (default (0,0) is center).