Awesome loading animation.
A custom loading animation for Swift.
iOS - Swift:
Add Loadmation to your pod file.
pod 'Loadmation'Install Loadmation
pod installImport Loadmation.
import LoadmationInitialize 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.circularLoadmation.Style.circular2Loadmation.Style.arrow
Saqib Omer – @LinkedIn – saqibomer.cs@gmail.com
Distributed under the MIT license. See LICENSE for more information.
