Latest 0.0.5
Homepage https://github.com/yokoe/loading-indicator-layer
License MIT
Platforms osx 10.9
Authors

[![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.

Latest podspec

{
    "name": "LoadingIndicatorLayer",
    "version": "0.0.5",
    "summary": "A CALayer based loading indicator.",
    "description": "A lightweight loading indicator with animations using CALayer.",
    "homepage": "https://github.com/yokoe/loading-indicator-layer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Sota Yokoe": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yokoe/loading-indicator-layer.git",
        "tag": "0.0.5"
    },
    "platforms": {
        "osx": "10.9"
    },
    "source_files": "Sources/**/*.swift",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This