Latest 0.1
Homepage https://github.com/t4l0s/LRCircularProgressView
License MIT
Platforms ios , requires ARC
Frameworks Foundation, UIKit
Authors

LRCircularProgressView is a simple UIView subclass for displaying and animating progress.

Installation

You can easily install LRCircularProgressView with CocoaPods by adding following line to your project’s pods file:

pod 'LRCircularProgressView'

Alternatively just download the source and add it to your local project. No further dependencies have to be resolved.

Usage

You can easily add an configure the view using the the Xcode Interface Designer.
The Text within the progressview can easily be modified as shown in the following example:

self.progressView = [LRCircularProgressView new]; // or from IB

NSMutableAttributedString *attrString = [NSMutableAttributedString new];
    [attrString appendAttributedString: [[NSAttributedString alloc] initWithString: @"Loadingn"]];
    [attrString addAttribute: LRCircularProgressPlaceholderKey value: @"%.0f" range: NSMakeRange(attrString.length - 1, 1)];
    [attrString appendAttributedString: [[NSAttributedString alloc] initWithString: @"%"]];

self.progressView.title = attrString;
[self.progressView sizeToFit];

[self.progressView setProgress: 1.f animated: YES];

License

LRCircularProgressView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "LRCircularProgressView",
    "version": "0.1",
    "summary": "LRCircularProgressView is a simple view to display and animate progress.",
    "homepage": "https://github.com/t4l0s/LRCircularProgressView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Lukas Riebel": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/t4l0s/LRCircularProgressView.git",
        "tag": "0.1"
    },
    "source_files": "src/*.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This