ZXLoadingView
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
// Initialize the progress view
let loadingView:ZXLoadingView = ZXLoadingView.init(frame:CGRect.init(x: self.view.center.x, y: self.view.center.y, width: 100, height: 100))
// Set the line width of the spinner
loadingView.lineWidth = 2.0
// Set the tint color of the spinner
loadingView.tintColor = UIColor.redColor
// Add it as a subview
self.view.addSubview(loadingView)
...
// Start & stop animations
loadingView.startAnimating
loadingView.stopAnimating
Also Support Xib & StoryBoard
The lineWidth
and tintColor
properties can even be set after animating has been started, which you can observe in the included example project.
Requirements
Installation
ZXLoadingView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ZXLoadingView'
Author
zxin2928, [email protected]
License
ZXLoadingView is available under the MIT license. See the LICENSE file for more info.