[![CI Status](http://img.shields.io/travis/Sota Yokoe/LoadingIndicatorLayer.svg?style=flat)](https://travis-ci.org/Sota Yokoe/LoadingIndicatorLayer)
CALayer based Loading indicator with animations.
loadingIndicatorLayer = LoadingIndicatorLayer()
theView.layer?.addSublayer(loadingIndicatorLayer)
loadingIndicatorLayer.frame = CGRect(x: layer.bounds.midX - 40, y: layer.bounds.midY - 40, width: 80, height: 80)
loadingIndicatorLayer.color = NSColor.red
@IBAction func onStatusIdle(_ sender: Any) {
loadingIndicatorLayer.status = .idle
}
@IBAction func onStatusLoading(_ sender: Any) {
loadingIndicatorLayer.status = .loading
}
LoadingIndicatorLayer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LoadingIndicatorLayer"
Sota Yokoe, info@kreuz45.com
LoadingIndicatorLayer is available under the MIT license. See the LICENSE file for more info.