https://github.com/misterwell/MMMaterialDesignSpinner
An iOS activity spinner modeled after Google's Material Design Spinner
https://github.com/misterwell/MMMaterialDesignSpinner
Last synced: 5 months ago
JSON representation
An iOS activity spinner modeled after Google's Material Design Spinner
- Host: GitHub
- URL: https://github.com/misterwell/MMMaterialDesignSpinner
- Owner: misterwell
- License: mit
- Created: 2014-12-28T20:13:55.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-01T16:49:20.000Z (about 8 years ago)
- Last Synced: 2025-04-25T01:02:28.150Z (6 months ago)
- Language: Objective-C
- Size: 1.56 MB
- Stars: 574
- Watchers: 18
- Forks: 79
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-iOS - MMMaterialDesignSpinner - An iOS activity spinner modeled after Google's Material Design Spinner (UI Components)
- awesome - MMMaterialDesignSpinner - An iOS activity spinner modeled after Google's Material Design Spinner. 【 [Priview 1](https://raw.githubusercontent.com/misterwell/MMMaterialDesignSpinner/master/Demo.gif) 】 (OOM-Leaks-Crash / HUD-Indicator)
README
# MMMaterialDesignSpinner
[](https://travis-ci.org/misterwell/MMMaterialDesignSpinner)
[](http://cocoadocs.org/docsets/MMMaterialDesignSpinner)
[](http://cocoadocs.org/docsets/MMMaterialDesignSpinner)
[](http://cocoadocs.org/docsets/MMMaterialDesignSpinner)
[](https://github.com/Carthage/Carthage)
## Usage
To run the example project, clone the repo, and run `pod install` from the Example directory first.
``` objc
// Initialize the progress view
MMMaterialDesignSpinner *spinnerView = [[MMMaterialDesignSpinner alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];// Set the line width of the spinner
spinnerView.lineWidth = 1.5f;
// Set the tint color of the spinner
spinnerView.tintColor = [UIColor redColor];// Add it as a subview
[self.view addSubview:spinnerView];...
// Start & stop animations
[spinnerView startAnimating];
[spinnerView stopAnimating];```
Also Support Xib & StoryBoardThe `lineWidth` and `tintColor` properties can even be set after animating has been started, which you can observe in the included example project.
## Requirements
* CoreGraphics## Installation
MaterialDesignSpinner is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:pod "MMMaterialDesignSpinner"
MaterialDesignSpinner is also [Carthage](https://github.com/Carthage/Carthage) compatible, add the following line to your Cartfile:
github "misterwell/MMMaterialDesignSpinner"
## Author
Mike Maxwell, mmaxwell@vertical.com
## License
MMMaterialDesignSpinner is available under the MIT license. See the LICENSE file for more info.