/CircleLoading

CircleLoading view

Primary LanguageShellMIT LicenseMIT

CircleLoading

CI Status Version License Platform

Example

alt tag alt tag alt tag

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

Requirements

Xcode 8, Swift 3

Installation

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

pod 'CircleLoading'

Usage

Default

circleLoading.start()

Custom

// Set colors
circleLoading.colors(color1: UIColor.red, color2: UIColor.red, color3: UIColor.red)

// Set duration
circleLoading.duration = 5.0

// Start animation
circleLoading.start()

// Pause animation
circleLoading.pause()

// Resume animation
circleLoading.resume()

// Stop animation and hide layers
circleLoading.stop()

Author

goldmoment, nguyenvanvienqn@gmail.com

License

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