Modern loading indicator for iOS 10
Switch branches/tags
Nothing to show
Clone or download
Latest commit 4d26b77 May 22, 2017

README.md

dots_header

Dots

CI Status Version License Platform

Dots is the replacement of UIActivityIndicatorView. It provides modern and highly customizable loading indicator. You can call this dots loading view from everywhere in your program with just 2 lines of code.

GIFs

Google color

gif

Pink gradient

gif

Twitter color

gif

Example

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

Requirements

iOS 10.0 +

Installation

I've submited this pod 10 days ago, but still can't install via Cocoapods. Maybe we need to wait more. If you have any clue why we can't use this pod, let me know. Thank you.

pod 'DotsLoading'

Usage

In your ViewController, run below.

Show

let loadingView = DotsLoadingView(colors: nil)
self.view.addSubview(loadingView)

Hide

loadingView.stop()

Customization

You can use custom dot colors.

Note: You need to create array which includes four UIColors. If you specify less than or more than 4 colors, the colors of dots will be default.

let dotColors = [UIColor.red, UIColor.blue, UIColor.green, UIColor.yellow]
let loadingView = DotsLoadingView(colors: dotColors)
self.view.addSubview(loadingView)

Author

makomori, makomori26@gmail.com

License

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