Latest 0.1.0
Homepage https://github.com/EngrAhsanAli/AAMaterialSpinner
License MIT
Platforms ios 8.0
Authors

Table of Contents

Swift 4.2 Carthage compatible CocoaPods License MIT Build Status
License MIT [CocoaPods]()
AA-Creations
Country

Description

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

Demonstration

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

Requirements

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

Installation

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

CocoaPods

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

$ gem install cocoapods

Then create a Podfile with the following contents:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target '<Your Target Name>' do
pod 'AAMaterialSpinner'
end

Finally, run the following command to install it:

$ pod install

Carthage

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 = UIColor.blue.cgColor
aa_present_material_spinner()

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

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.0",
    "summary": "AAMaterialSpinner loader written in Swift 4.",
    "description": "AAMaterialSpinner loader written in Swift 4. Easy to use in any UIViewController.",
    "homepage": "https://github.com/EngrAhsanAli/AAMaterialSpinner",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "EngrAhsanAli": "[email protected]"
    },
    "source": {
        "git": "https://github.com/EngrAhsanAli/AAMaterialSpinner.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "AAMaterialSpinner/Classes/**/*"
}

Pin It on Pinterest

Share This