Latest 0.1.1
Homepage https://github.com/ShennyO/SunnyLoadings
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform

preview

Example

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

Requirements

Installation

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

pod 'SunnyLoadings'

To Use:

  1. Instantiate the loader class let loader = Loader(vc: self)
  2. To start the loading animation, call the method startAnimations, specify the position and size of your preferred loading indicator and color of choiceloader.startAnimations(x: self.view.bounds.midX, y: self.view.bounds.midY, size: self.view.bounds.width * 0.3, color: UIColor.white)
  3. To end the animations, just call the method stopAllAnimations with the specific case, whether it’s a success: loader.stopAllAnimations(result: .success) or failure: loader.stopAllAnimations(result: .failure)

Extra Notes:

Known bug: When clicking the home button and returning to the app, or when changing view controllers, the expanding and shrinking animation of the circle is automatically removed. To work around this, developers can call the method removeAnimationViews: loader.removeAnimationViews() when leaving the view and call the function ‘startAnimations’: loader.startAnimations(x: self.view.bounds.midX, y: self.view.bounds.midY, size: self.view.bounds.width * 0.3) again when the view is displayed again.

Author

ShennyO, [email protected]

License

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

Latest podspec

{
    "name": "SunnyLoadings",
    "version": "0.1.1",
    "summary": "SunnyLoadings is a smooth, simple to use loading indicator.",
    "description": "'SunnyLoadings makes it easy to create a beautiful loading animation indicator. Developers can use this library when they need an indicator for loading'",
    "homepage": "https://github.com/ShennyO/SunnyLoadings",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ShennyO": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ShennyO/SunnyLoadings.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0",
    "source_files": "SunnyLoadings/Classes/**/*"
}

Pin It on Pinterest

Share This