https://github.com/johnvuko/jtmaterialspinner
An iOS material design spinner view
https://github.com/johnvuko/jtmaterialspinner
ios ios-animation loader material material-design spinner swift
Last synced: about 1 year ago
JSON representation
An iOS material design spinner view
- Host: GitHub
- URL: https://github.com/johnvuko/jtmaterialspinner
- Owner: johnvuko
- License: mit
- Created: 2015-07-31T23:14:18.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-11-15T20:08:27.000Z (over 4 years ago)
- Last Synced: 2025-04-06T21:02:33.505Z (about 1 year ago)
- Topics: ios, ios-animation, loader, material, material-design, spinner, swift
- Language: Swift
- Homepage:
- Size: 181 KB
- Stars: 129
- Watchers: 7
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JTMaterialSpinner
[](https://travis-ci.org/jonathantribouharet/JTMaterialSpinner)



An iOS material design spinner view.
## Installation
With [CocoaPods](http://cocoapods.org/), add this line to your Podfile.
pod 'JTMaterialSpinner', '~> 3.0'
## Screenshots

## Usage
### Basic usage
```swift
import UIKit
import JTMaterialSpinner
class ViewController: UIViewController {
var spinnerView = JTMaterialSpinner()
override func viewDidLoad() {
super.viewDidLoad()
// Customize the line width
spinnerView.circleLayer.lineWidth = 2.0
// Change the color of the line
spinnerView.circleLayer.strokeColor = UIColor.orange.cgColor
// Change the duration of the animation
spinnerView.animationDuration = 2.5
}
func loadSomething () {
spinnerView.beginRefreshing()
MyService.loadSomeData() { () -> () in
spinnerView.endRefreshing()
}
}
}
```
## Requirements
- iOS 8.0 or higher
- Swift 4.2
## Author
- [Jonathan VUKOVICH TRIBOUHARET](https://github.com/jonathantribouharet) ([@johnvuko](https://twitter.com/johnvuko))
## License
JTMaterialSpinner is released under the MIT license. See the LICENSE file for more info.