Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Latest commit

 

History

History
44 lines (27 loc) · 1.79 KB

File metadata and controls

44 lines (27 loc) · 1.79 KB

GSIndeterminateProgressBar

Version License Platform

GSIndeterminateProgressView is a subclass of UIView that looks like UIProgressView but acts like UIActivityIndicatorView.

Usage

To run the example project; clone the repo, and run pod install from the Example directory first.

Capture

Import GSIndeterminateProgressView.h

    UINavigationBar *navigationBar = self.navigationController.navigationBar;

    GSIndeterminateProgressView *progressView = [[GSIndeterminateProgressView alloc] initWithFrame:CGRectMake(0, navigationBar.frame.size.height - 2,
                                                                                                              navigationBar.frame.size.width, 2)];
    progressView.progressTintColor = navigationBar.barTintColor;
    progressView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin;
    [navigationBar addSubview:progressView];

    [progressView startAnimating];

Installation

GSIndeterminateProgressBar is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GSIndeterminateProgressBar"

Author

Endika Gutiérrez, me@endika.net

License

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