SKLoader 0.0.1

SKLoader 0.0.1

Maintained by Srujan K.



SKLoader 0.0.1

  • By
  • Srujan K

SKLoader

Now you can animate any kind of loader with SKLoader framework. Have a look at some examples below.

earthloader foodloader pageloader simpleloader uploadeloader textloader quoteloader

Requirements

SKLoader works for iOS 9.0+ and requires ARC to buid. It requires gif to animate. Pre loaded with some gifs in example project. You can use your own gifs to animate in loader.

Add SKLoader to your project

Cocoapods ( Highly recommended way is to use cocoapods)

pod 'SKLoader'

Usage:

  1. import SKLoader
  2. SKLoader works, as a singleton shared instance, or you can create an instance of SKLoader and use it.
  3. Start Using It, by below sytax using shared instace. You can set up your SKLoader at didfinishlaunchingwithoptions method, or wherever you want to use.

Shared Instance:

SKLoader.sharedInstance.gifName = "SimpleLoader"
SKLoader.sharedInstance.animationSpeed = 0.01
SKLoader.sharedInstance.showLoader()

SKLoader Instace:

let loader = SKLoader()
loader.gifName = "SimpleLoader"
loader.animationSpeed = 0.01
loader.showLoader()
Timer.scheduledTimer(withTimeInterval: 3.5, repeats: false) { (boolean) in
    loader.hideLoader()
}

Public objects to finetune your animtaions:

gifName
backGroundColor
backgroundAlpha
animationSpeed
viewSize
viewContentMode
viewBackgroundColor

Note:

  1. Drag and drop a gif to your working

Noticeable mentions

[GitHub] (https://github.com/swiftgif/SwiftGif)

License

This code is distributed under the terms and conditions of the MIT license.

Change-log

A brief summary of each release can be found in the CHANGELOG.