Need help with JTMaterialSpinner?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

jonathantribouharet
128 Stars 21 Forks MIT License 22 Commits 2 Opened issues

Description

An iOS material design spinner view

Services available

!
?

Need anything else?

Contributors list

# 21,801
Rails
Objecti...
iOS
Shell
18 commits
# 306,521
Swift
iOS
swift5
crop-im...
1 commit

JTMaterialSpinner

CI Status Version License Platform

An iOS material design spinner view.

Installation

With CocoaPods, add this line to your Podfile.

pod 'JTMaterialSpinner', '~> 3.0'

Screenshots

Example

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.