Latest 0.1.2
License MIT
Platforms ios 8.0

Table of Contents

Swift 5.0 Carthage compatible CocoaPods License MIT Build Status
License MIT [CocoaPods]()


AAMaterialSpinner is a simple UIView to so Loader on screen easily in iOS, written in Swift 4.2.


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


  • iOS 10.0+
  • Xcode 8.0+
  • Swift 4.2+


AAMaterialSpinner can be installed using CocoaPods, Carthage, or manually.


AAMaterialSpinner is available through CocoaPods. To install CocoaPods, run:

$ gem install cocoapods

Then create a Podfile with the following contents:

source ''
platform :ios, '8.0'

target '<Your Target Name>' do
pod 'AAMaterialSpinner', '0.1.2'

Finally, run the following command to install it:

$ pod install


To install Carthage, run (using Homebrew):

$ brew update
$ brew install carthage

Then add the following line to your Cartfile:

github "EngrAhsanAli/AAMaterialSpinner" "master"

Then import the library in all files where you use it:

import AAMaterialSpinner

Manual Installation

If you prefer not to use either of the above mentioned dependency managers, you can integrate AAMaterialSpinner into your project manually by adding the files contained in the Classes folder to your project.

Getting Started

Add in any UIView easily

// In some UIViewController
var spinnerView: AAMaterialSpinner!
@IBOutlet weak var loadingView: UIView!

self.aa_ms = self.loadingView.addMaterialSpinner()
self.aa_ms.colorArray = [.blue, .red, .orange]
self.aa_ms.circleLayer.lineWidth = 3.0

Show as a presenter!

// In some UIViewController

let vc = aa_vc_material_spinner(size: 100)
vc.aa_ms.circleLayer.lineWidth = 2.0
vc.aa_ms.circleLayer.strokeColor =

DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {

Contributions & License

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

Pull requests are welcome! The best contributions will consist of substitutions or configurations for classes/methods known to block the main thread during a typical app lifecycle.

I would love to know if you are using AAMaterialSpinner in your app, send an email to Engr. Ahsan Ali

Latest podspec

    "name": "AAMaterialSpinner",
    "version": "0.1.2",
    "summary": "AAMaterialSpinner loader written in Swift 5.",
    "description": "AAMaterialSpinner loader written in Swift 5. Easy to use in any UIViewController.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "EngrAhsanAli": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.2"
    "platforms": {
        "ios": "8.0"
    "source_files": "AAMaterialSpinner/Classes/**/*"

Pin It on Pinterest

Share This