LoadingIndicatorLayer 0.0.5

LoadingIndicatorLayer 0.0.5

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2018
SPMSupports SPM

Maintained by Sota Yokoe.



  • By
  • Sota Yokoe

LoadingIndicatorLayer

[![CI Status](http://img.shields.io/travis/Sota Yokoe/LoadingIndicatorLayer.svg?style=flat)](https://travis-ci.org/Sota Yokoe/LoadingIndicatorLayer) Version License Platform

CALayer based Loading indicator with animations.

Example

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
}

Requirements

Installation

LoadingIndicatorLayer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "LoadingIndicatorLayer"

Author

Sota Yokoe, [email protected]

License

LoadingIndicatorLayer is available under the MIT license. See the LICENSE file for more info.