Skip to content

Loading JSON Animations and Shimmer Effects on UIViews

License

Notifications You must be signed in to change notification settings

iOSWizards/AwesomeLoading

Repository files navigation

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.

About

Loading JSON Animations and Shimmer Effects on UIViews

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published