Skip to content

Latest commit

 

History

History
73 lines (44 loc) · 1.3 KB

README.md

File metadata and controls

73 lines (44 loc) · 1.3 KB

Loadmation

Awesome loading animation.

A custom loading animation for Swift.

https://raw.githubusercontent.com/saqibomer/Loadmation/master/demo.gif

Installation

iOS - Swift:

Add Loadmation to your pod file.

pod 'Loadmation'

Install Loadmation

pod install

Usage example

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()

Supported loading animation styles

  • Circular
    • Loadmation.Styles.Circular.rawValue
    • Loadmation.Styles.Circular2.rawValue
    • Loadmation.Styles.Arrow.rawValue

Meta

Saqib Omer – @LinkedIn[email protected]

Distributed under the MIT license. See LICENSE for more information.

https://github.com/saqibomer/loadmation