Skip to content

Hank2354/LEActivityIndicator

Repository files navigation

header

🔶 LEActivityIndicator 🔶

Collection of activity indicators with a beautiful and user-friendly interface

About project ⚠️

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.

Framework options 📑

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)

How use 🔑

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)

Installation

Cocoapods

Cocoapods is a dependency manager for Swift and Objective-C Cocoa projects. To use LEActivityIndicator with CocoaPods, add it in your Podfile.

pod 'LEActivity'

Control 🎮

Start animating.

activityIndicatorView.showActivity()

Stop animating.

activityIndicatorView.hideActivity()

About

[SWIFT] Custom activity indicators

Resources

License

Stars

Watchers

Forks