Swiftpack.co - Abedalkareem/AMDots as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Abedalkareem/AMDots
AMDots is a loading indicator for iOS
.package(url: "https://github.com/Abedalkareem/AMDots.git", from: "2.0.0")

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, abedalkareem.omreyh@yahoo.com

License

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

GitHub

link
Stars: 50
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

2.0.0 🎁
4 weeks ago

What's new

  • Rename AMDots to AMDotsView.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics