Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ilia3546/simplematerialspinner
Beautiful and simple loader that mimicks Google's Material loader.
https://github.com/ilia3546/simplematerialspinner
Last synced: about 11 hours 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-22T11:23:46.000Z (about 5 years ago)
- Last Synced: 2024-11-11T05:45:04.729Z (9 days 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.[![Language](https://img.shields.io/badge/Swift-4-orange.svg)]()
[![Version](https://img.shields.io/cocoapods/v/SimpleMaterialSpinner.svg?style=flat)](https://cocoapods.org/pods/SimpleMaterialSpinner)
[![License](https://img.shields.io/cocoapods/l/SimpleMaterialSpinner.svg?style=flat)](https://cocoapods.org/pods/SimpleMaterialSpinner)
[![Platform](https://img.shields.io/cocoapods/p/SimpleMaterialSpinner.svg?style=flat)](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.