在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jonathantribouharet/JTMaterialSpinner开源软件地址(OpenSource Url):https://github.com/jonathantribouharet/JTMaterialSpinner开源编程语言(OpenSource Language):Swift 88.1%开源软件介绍(OpenSource Introduction):JTMaterialSpinnerAn iOS material design spinner view. InstallationWith CocoaPods, add this line to your Podfile.
ScreenshotsUsageBasic usageimport 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
AuthorLicenseJTMaterialSpinner is released under the MIT license. See the LICENSE file for more info. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论