AMDots Save

AMDots is a loading indicator for iOS

Project README

CI Status Version License Platform


AMDots is a loading indicator with dots moving like google loading, there are three types of the loading, scale, jump, and shake.

Screenshots

Example

Code example

class CodeExampleViewController: UIViewController {

  private var dotsView: AMDotsView!

  override func viewDidLoad() {
    super.viewDidLoad()

    dotsView = AMDotsView(frame: CGRect(x: 20, y: 20, width: 150, height: 70),
                          colors: [.red, .blue, .yellow, .green])
    dotsView.backgroundColor = UIColor.white
    dotsView.animationType = .scale
    view.addSubview(dotsView)

    dotsView.start()
  }
}

Storyboard example

class StoryboardExampleViewController: UIViewController {

  @IBOutlet weak var dotsView1: AMDotsView!

  override func viewDidLoad() {
    super.viewDidLoad()
    
    dotsView1.animationType = .jump
    dotsView1.aheadTime = 0.5
    dotsView1.animationDuration = 0.7
    dotsView1.start()
  }

}

Installation

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

pod 'AMDots'

Author

Abedalkareem, [email protected]

License

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

Open Source Agenda is not affiliated with "AMDots" Project. README Source: Abedalkareem/AMDots
Stars
50
Open Issues
0
Last Commit
2 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating