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.loadingView, style: Loadmation.Styles.Circular.rawValue, frame: self.loadingView.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.Styles.Circular.rawValue
Loadmation.Styles.Circular2.rawValue
Loadmation.Styles.Arrow.rawValue
Saqib Omer – @LinkedIn – [email protected]
Distributed under the MIT license. See LICENSE
for more information.