Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.95 KB

File metadata and controls

54 lines (32 loc) · 1.95 KB

AwesomeLoading

CI Status Version License Platform

Example

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

Requirements

  • iOS 10 or Higher
  • Swift 4.2

Installation

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

pod 'AwesomeLoading', git: 'https://github.com/iOSWizards/AwesomeLoading', tag: '0.1.8'

Usage

Import AwesomeLoading to your class, from any UIView in the project:

Start Custom Animation: viewName.startLoadingAnimation(json: "customLoadingJSONFileName")

Start Custom Animation from Separate Bundle: viewName.startLoadingAnimation(json: "customLoadingJSONFileName", bundle: Custom.bundle)

Start Default ActivityIndicator Animation: viewName.startLoadingAnimation()

Start (DELAYED) Custom Animation: viewName.startLoadingAnimationDelayed(delay: 3.0,json: "customLoadingJSONFileName", bundle: Custom.bundle)

Stop Animation: viewName.stopLoadingAnimation()

For default animations:

First: Default Json: AwesomeLoading.defaultAnimationJson = "beacon"

Default Bundle: AwesomeLoading.defaultAnimationBundle = Bundle.main

Default Size: AwesomeLoading.defaultAnimationSize = CGSize(width: 100, height: 100)

Then: Default animation: viewName.startLoadingAnimation()

License

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