DotsLoading 1.0.0

DotsLoading 1.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Makoto Mori.



  • By
  • makomori

dots_header

Dots

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, [email protected]

License

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