Home

Awesome

LLSpinner

Swift 4.2 Platform Version Carthage compatible

An easy way to handle full screen activity indicator.

llspinner

Easy to use

Get Started

// Show spinner
LLSpinner.spin()

// Hide spinner
LLSpinner.stop()

Controls

Custom Appearance

// You can modify the background color and the activity indicator style
// To set the default background color
LLSpinner.backgroundColor = UIColor(white: 0, alpha: 0.6)

// and the default activity indicator style
LLSpinner.style = .whiteLarge

// Or
LLSpinner.spin(style: .whiteLarge, backgroundColor: UIColor(white: 0, alpha: 0.6))

Tap handler

// Add a handler that will trigger when the spinner is tapped
LLSpinner.spin() {
   LLSpinner.stop()
}

Installation

Cocoapods

LLSpinner is available through CocoaPods.

To install add the following line to your Podfile:

pod 'LLSpinner'

Carthage

Add the following line to your Cartfile:

github "alaphao/LLSpinner"

Manually

Download and drop LLSpinner.swift in your project.