Latest | 3.0.5 |
---|---|
Homepage | https://github.com/jonathantribouharet/JTMaterialSpinner |
License | MIT |
Platforms | ios 8.0, requires ARC |
Authors |
An iOS material design spinner view.
Installation
With CocoaPods, add this line to your Podfile.
pod 'JTMaterialSpinner', '~> 3.0'
Screenshots
Usage
Basic usage
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
License
JTMaterialSpinner is released under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "JTMaterialSpinner", "version": "3.0.5", "summary": "An iOS spinner view based on material design.", "homepage": "https://github.com/jonathantribouharet/JTMaterialSpinner", "license": { "type": "MIT" }, "authors": { "Jonathan VUKOVICH TRIBOUHARET": "[email protected]" }, "platforms": { "ios": "8.0" }, "source": { "git": "https://github.com/jonathantribouharet/JTMaterialSpinner.git", "tag": "3.0.5" }, "source_files": "JTMaterialSpinner/*", "requires_arc": true, "screenshots": [ "https://raw.githubusercontent.com/jonathantribouharet/JTMaterialSpinner/master/Screens/example.gif" ], "swift_version": "4.2", "pod_target_xcconfig": { "SWIFT_VERSION": "4.2" } }
Sun, 20 Jan 2019 11:27:10 +0000