https://github.com/alephao/LLSpinner
The easiest way to handle a simple full screen activity indicator in iOS. Written in Swift.
https://github.com/alephao/LLSpinner
Last synced: 3 months ago
JSON representation
The easiest way to handle a simple full screen activity indicator in iOS. Written in Swift.
- Host: GitHub
- URL: https://github.com/alephao/LLSpinner
- Owner: alephao
- License: mit
- Created: 2016-09-22T07:28:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-05T21:19:56.000Z (about 5 years ago)
- Last Synced: 2024-11-27T11:33:47.468Z (11 months ago)
- Language: Swift
- Homepage:
- Size: 33.2 KB
- Stars: 37
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ios - LLSpinner - An easy way to create a full screen activity indicator. (UI / Activity Indicator)
- awesome-ios-star - LLSpinner - An easy way to create a full screen activity indicator. (UI / Activity Indicator)
README
LLSpinner
===========
[](https://developer.apple.com/swift/)
[](https://cocoapods.org/pods/LLSpinner)
[](https://cocoapods.org/pods/LLSpinner)
[](https://github.com/Carthage/Carthage)
An easy way to handle full screen activity indicator.

Easy to use
----
### Get Started
```swift
// Show spinner
LLSpinner.spin()
// Hide spinner
LLSpinner.stop()
```
### Controls
#### Custom Appearance
```swift
// 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
```swift
// Add a handler that will trigger when the spinner is tapped
LLSpinner.spin() {
LLSpinner.stop()
}
```
Installation
---
### Cocoapods
LLSpinner is available through [CocoaPods](http://cocoapods.org).
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.