Skip to content

saqibomer/Loadmation

Repository files navigation

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

Supported loading animation styles

  • Circular
    • Loadmation.Style.circular
    • Loadmation.Style.circular2
    • Loadmation.Style.arrow

Meta

Saqib Omer – @LinkedInsaqibomer.cs@gmail.com

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

https://github.com/saqibomer/loadmation