Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/misterwell/MMMaterialDesignSpinner
An iOS activity spinner modeled after Google's Material Design Spinner
https://github.com/misterwell/MMMaterialDesignSpinner
Last synced: 29 days 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 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-01T16:49:20.000Z (over 7 years ago)
- Last Synced: 2024-05-18T06:41:14.139Z (7 months ago)
- Language: Objective-C
- Size: 1.56 MB
- Stars: 579
- Watchers: 20
- Forks: 80
- 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
[![CI Status](http://img.shields.io/travis/misterwell/MMMaterialDesignSpinner.svg?style=flat)](https://travis-ci.org/misterwell/MMMaterialDesignSpinner)
[![Version](https://img.shields.io/cocoapods/v/MMMaterialDesignSpinner.svg?style=flat)](http://cocoadocs.org/docsets/MMMaterialDesignSpinner)
[![License](https://img.shields.io/cocoapods/l/MMMaterialDesignSpinner.svg?style=flat)](http://cocoadocs.org/docsets/MMMaterialDesignSpinner)
[![Platform](https://img.shields.io/cocoapods/p/MMMaterialDesignSpinner.svg?style=flat)](http://cocoadocs.org/docsets/MMMaterialDesignSpinner)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)![Demo](https://raw.githubusercontent.com/misterwell/MMMaterialDesignSpinner/master/Demo.gif "Pod Demo")
## 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, [email protected]
## License
MMMaterialDesignSpinner is available under the MIT license. See the LICENSE file for more info.