Awesome loading animation.
A custom loading animation for Swift.
iOS - Swift:
Add Loadmation to your pod file.
pod 'Loadmation'
Install Loadmation
pod install
Import Loadmation.
import Loadmation
Initialize Loadmation
Create an object of Loadmation
var loadmation : Loadmation!
In your viewDidLoad()
or any other method initialize object as:
self.loadmation = Loadmation(parent: self.containerView, style: Loadmation.Style.circular, frame: self.containerView.frame)
TIP: You can add container view any background color in storyboard.
Start loading animation
self.loadmation.startAnimation()
Stop loading animation
self.loadmation.stopLoadingAnimation()
- Circular
Loadmation.Style.circular
Loadmation.Style.circular2
Loadmation.Style.arrow
Saqib Omer – @LinkedIn – saqibomer.cs@gmail.com
Distributed under the MIT license. See LICENSE
for more information.