Collection of activity indicators with a beautiful and user-friendly interface
LEActivityIndicator is a library containing a collection of beautiful loading indicators, using this library you can brighten up your application by spending 10 seconds to install and use the indicator. The collection will be updated, you can always follow the updates and new indicators on this page.
LEActivityStyle
- Sets the style of the indicator to be displayed on LEActivityIndicatorView
defaultStyle | spinner | gradient | wave |
---|---|---|---|
bouble | line | cube | walking |
---|---|---|---|
LEActivitySize
- This model allows you to set the dimensions for the indicator
LEActivitySize | Current size |
---|---|
extraSmall | 10x10 |
small | 30x30 |
medium | 50x50 |
large | 70x70 |
extraLarge | 90x90 |
custom | custom CGSize |
LEActivityColorSet
- Allows you to set the color palette for the indicator
It has three components
- mainColor
- secondMainColor
- complementaryColor (optional)
Firstly, import LEActivityIndicator
import LEActivityIndicator
and create LEActivityIndicatorView with choosed options
let style: LEActivityStyle = .spinner
let size: LEActivitySize = .medium
let colorSet = ColorSet(mainColor: .red, secondMainColor: .green)
let indicator = LEActivityIndicatorView(style: style, size: size, colorSet: colorSet)
Cocoapods is a dependency manager for Swift and Objective-C Cocoa projects. To use LEActivityIndicator with CocoaPods, add it in your Podfile
.
pod 'LEActivity'
Start animating.
activityIndicatorView.showActivity()
Stop animating.
activityIndicatorView.hideActivity()