https://github.com/ilia3546/simplematerialspinner
Beautiful and simple loader that mimicks Google's Material loader.
https://github.com/ilia3546/simplematerialspinner
Last synced: about 2 months ago
JSON representation
Beautiful and simple loader that mimicks Google's Material loader.
- Host: GitHub
- URL: https://github.com/ilia3546/simplematerialspinner
- Owner: ilia3546
- License: mit
- Created: 2018-05-21T16:28:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-22T11:23:46.000Z (almost 6 years ago)
- Last Synced: 2025-04-24T23:03:32.984Z (2 months ago)
- Language: Swift
- Size: 132 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleMaterialSpinner
![]()
SimpleMaterialSpinner is a beautiful and simple loader that mimicks Google's Material loader.[]()
[](https://cocoapods.org/pods/SimpleMaterialSpinner)
[](https://cocoapods.org/pods/SimpleMaterialSpinner)
[](https://cocoapods.org/pods/SimpleMaterialSpinner)## Features
- [x] Directly added to the iOS Interface Builder, very easy to integrate into every project! 😏
- [x] It can change color after every iteration
- [x] Customize line width, duration, etc.##### How to use
```
//Customize
spinner.color1 = .red // First color
spinner.color2 = .green // Second color
spinner.color3 = nil // You can pass color
spinner.hidesWhenStopped = true
spinner.duration = 0.8
spinner.lineWidth = 4.0//Start animating
spinner.startAnimating()//Stop animating
spinner.stopAnimating()
```## Requirements
- iOS 8.0+
- Xcode 8+## CocoaPods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
```bash
$ gem install cocoapods
```To integrate SimpleMaterialSpinner into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!pod 'SimpleMaterialSpinner'
```Then, run the following command:
```bash
$ pod install
```## Author
Ilya Kharlamov, [email protected]
## License
SimpleMaterialSpinner is available under the MIT license. See the LICENSE file for more info.