Latest 0.2.1
Homepage https://github.com/jhays/JHSpinner
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

To use JHSpinner, simply call the JHSpinnerView.showOnView(… function.
There are a variety of optional parameters you can use to customize features such as the overlay type, colors, spinner animation speed, and text.

Rounded Square:

let spinner = JHSpinnerView.showOnView(view, spinnerColor:UIColor.redColor(), overlay:.RoundedSquare, overlayColor:UIColor.blackColor().colorWithAlphaComponent(0.6))

view.addSubview(spinner)

Screenshot

Square:

let spinner = JHSpinnerView.showOnView(view, spinnerColor:UIColor.redColor(), overlay:.Square, overlayColor:UIColor.blackColor().colorWithAlphaComponent(0.6))

view.addSubview(spinner)

Screenshot

Circular:

let spinner = JHSpinnerView.showOnView(view, spinnerColor:UIColor.redColor(), overlay:.Circular, overlayColor:UIColor.blackColor().colorWithAlphaComponent(0.6))

view.addSubview(spinner)

Screenshot

FullScreen:

let spinner = JHSpinnerView.showOnView(view, spinnerColor:UIColor.redColor(), overlay:.FullScreen, overlayColor:UIColor.blackColor().colorWithAlphaComponent(0.6))

view.addSubview(spinner)

Screenshot

Custom (the Custom enum value requires parameters to specify size and corner radius):

let spinner = JHSpinnerView.showOnView(view, spinnerColor:UIColor.redColor(), overlay:.Custom(CGSize(width: 300, height: 200), 20), overlayColor:UIColor.blackColor().colorWithAlphaComponent(0.6), fullCycleTime:4.0, text:"Loading")

view.addSubview(spinner)

Screenshot

Determinite (modify the spinner’s progress property to update the circular loading indicator):

let spinner = JHSpinnerView.showDeterminiteSpinnerOnView(self.view)
spinner.progress = 0.0
view.addSubview(spinner)

Screenshot

To remove a spinner:

spinner.dismiss()

Requirements

iOS8+

Installation

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

pod "JHSpinner"

Author

JHays, [email protected]

License

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

Latest podspec

{
    "name": "JHSpinner",
    "version": "0.2.1",
    "summary": "A unique animated loading spinner / activity indicator for iOS",
    "description": "A unique animated loading spinner / activity indicator UIView subclass for iOS. Includes several customization options to change the overlay, colors, text, and animation speed. Also includes a determinate spinner for progress-bar style loading or file upload.",
    "homepage": "https://github.com/jhays/JHSpinner",
    "screenshots": [
        "https://raw.githubusercontent.com/jhays/JHSpinner/master/RoundedSquare.gif",
        "https://raw.githubusercontent.com/jhays/JHSpinner/master/Determinite.gif"
    ],
    "license": "MIT",
    "authors": {
        "JHays": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jhays/JHSpinner.git",
        "tag": "0.2.1"
    },
    "social_media_url": "https://twitter.com/orbosphere",
    "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