AAMaterialSpinner 0.1.2

AAMaterialSpinner 0.1.2

Maintained by Engr. Ahsan Ali.



  • By
  • EngrAhsanAli

Table of Contents

#AAMaterialSpinner

Swift 5.0 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', '0.1.2'
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