Latest 0.1.0
Homepage https://github.com/williamnabechima/CustomSpinner
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

In you AppDelegate add the following code

var array: [UIImage] = []
var cont: Int = 0
//Add spinner images
while let image = UIImage(named: String(format: "spinner%d", cont))  {
    array.append(image)
    cont += 1
}

CustomSpinner.sharedInstance().setImageArray(array: array)
self.window?.addSubview(CustomSpinner.sharedInstance())

To start animating just call

CustomSpinner.sharedInstance().startAnimating()

To stop animating just call

CustomSpinner.sharedInstance().stopAnimating()

Requirements

Installation

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

pod 'CustomSpinner'

Author

william, [email protected]

License

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

Latest podspec

{
    "name": "CustomSpinner",
    "version": "0.1.0",
    "summary": "It is a customizable spinner.",
    "swift_version": "4.0",
    "source_files": "CustomSpinner/Classes/**/*",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/williamnabechima/CustomSpinner",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "william": "[email protected]"
    },
    "source": {
        "git": "https://github.com/williamnabechima/CustomSpinner.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    }
}

Pin It on Pinterest

Share This