MBSimpleLoadingIndicator
An easy-to-use, highly-customizable loading indicator for iOS apps
Install / Use
/learn @mbrenman/MBSimpleLoadingIndicatorREADME
MBSimpleLoadingIndicator

Code:
//Create the loader
_loadview = [[MBLoadingIndicator alloc] init];
//Start the loader
[self.loadview start];
//Add the loader to our view
[self.view addSubview:self.loadview];

Usage
###Change the percentage
//Change the percentage
[_loadview incrementPercentageBy:17];
//Fill up and start ending animation
[_loadview finish];
###Animated properties of the loader
//Change loader colors
[_loadview setLoadedColor:[UIColor darkGrayColor]];
[_loadview setBufferColor:[UIColor whiteColor]];
//Change loader sizes
[_loadview setWidth:15];
[_loadview setOuterLoaderBuffer:0];
//Move the loader
[_loadview offsetCenterXBy:50.0f];
[_loadview offsetCenterYBy:50.0f];
###Setup properties of loader
//Choose full circle, half circle, or line
[_loadview setLoaderStyle:MBLoaderFullCircle];
//Preset sizes (tiny, small, medium, large)
[_loadview setLoaderSize:MBLoaderLarge];
//If you need greater control over the size
[_loadview setRadius:30];
//Set where the line originates from (full circle style only)
[_loadview setStartPosition:MBLoaderRight];
//Set animation speed
[_loadview setAnimationSpeed:MBLoaderSpeedFast];
###Accessing loader information
//Get the percentage amount that is full (after current animation)
NSInteger amt = [_loadview getPercentage];
##Other useful things
//Hide the loader (useful if error in main app occurred)
[_loadview dismiss];
//Turn off interaction blocking
[_loadview allowClicks:YES];
To run the example project, clone the repo, and run pod install from the Example directory first.
Installation
MBSimpleLoadingIndicator is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MBSimpleLoadingIndicator"
##Troubleshooting
- Open an issue with GitHub's issue reporting system
- Send me an email at mattbrenman@gmail.com
- Send me a tweet at @mattbrenman with #MBLoaderIndicator
Author
mbrenman, mattbrenman@gmail.com
Acknowledgements
- Thanks to Richard for design tips and help
- Used Bohemian Sketch 3 for design and LICEcap for the gifs
License
MBSimpleLoadingIndicator is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
