sxua / KDLoadingView

A beautiful loading indicator. Written in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KDLoadingView

Swift 3.0 Platforms iOS Xcode 8.0+ pod v1.0.0

A beautiful loading indicator inspired by material design. 🀘🏻

Demo

alt tag

Usage

There are a few properties you may change:

Property Description Type Default Value
firstColor The initial color of the loading UIColor UIColor.black
secondColor The second color of the loading UIColor nil
thirdColor The third color of the loading UIColor nil
duration The duration of the loading animation CGFloat 3
lineWidth The width of the line CGFloat 1
hidesWhenStopped Indicates if the loading must be hidden when the animation stops Bool false

All properties are IBInspectable so you can just drag and drop a new view, change the class and make all the configurations that you need in the Storyboard.

I wish you a funny and happy coding. πŸš€

obs: you can set up to three colors in the loading but feel free to set just one or two if you like. πŸ˜„

Author

Kaique Pantosi D'amato, kaiquedamato@icloud.com. πŸ€“

License

KDLoadingView is available under the MIT license. See the License file for more info.

About

A beautiful loading indicator. Written in Swift.

License:MIT License


Languages

Language:Swift 91.0%Language:Ruby 6.0%Language:Objective-C 3.0%