To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 10 or Higher
- Swift 4.2
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'
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()
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()
AwesomeLoading is available under the MIT license. See the LICENSE file for more info.