Latest 0.0.1
Homepage https://github.com/alaphao/LLSpinner
License MIT
Platforms ios 8.0

Swift 3.0
Platforms iOS
Xcode 8.0+
pod v0.0.1
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.

Latest podspec

{
    "name": "LLSpinner",
    "version": "0.0.1",
    "summary": "Simple and easy to use full screen activity indicator written in Swift",
    "homepage": "https://github.com/alaphao/LLSpinner",
    "license": {
        "type": "MIT",
        "file": "LICENCE"
    },
    "authors": "Aleph Retamal",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/alaphao/LLSpinner.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "LLSpinner",
        "LLSpinner/*.{swift,h}"
    ]
}

Pin It on Pinterest

Share This