Latest 2.0.0
Homepage https://github.com/sarunw/SWActivityIndicatorView
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

A simple flat activity indicator view.

alt tag

Installation

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

pod "SWActivityIndicatorView"

You may also quickly try the SWActivityIndicatorView example project with

pod try SWActivityIndicatorView

Requirements

Requires iOS 8.0+ and ARC.

Usage

Basic usage

let activityIndicatorView = SWActivityIndicatorView(frame: CGRect(x: 0, y: 0, width: 50, height: 50))
self.view.addSubview(activityIndicatorView)
activityIndicatorView.startAnimating()

If you use Interface Builder, add a UIView to your interface and set Class to SWActivityIndicatorView.

Customization

You can use customize SWActivityIndicatorView via property

activityIndicatorView.lineWidth = 2
activityIndicatorView.autoStartAnimating = true
activityIndicatorView.hidesWhenStopped = false
activityIndicatorView.color = UIColor.lightGrayColor()

Author

Sarun Wongpatcharapakorn (@sarunw)

License

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

Latest podspec

{
    "name": "SWActivityIndicatorView",
    "version": "2.0.0",
    "summary": "A simple flat activity indicator view.",
    "homepage": "https://github.com/sarunw/SWActivityIndicatorView",
    "license": "MIT",
    "authors": {
        "Sarun Wongpatcharapakorn": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sarunw/SWActivityIndicatorView.git",
        "tag": "2.0.0"
    },
    "social_media_url": "https://twitter.com/sarunw",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This