Latest 0.0.1
Homepage https://github.com/srujankalvacherla/skloader
License MIT
Platforms ios 9.0
Authors

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.

Latest podspec

{
    "name": "SKLoader",
    "version": "0.0.1",
    "summary": "Simple usage, Seamless functionality.",
    "description": "SKLoader is inspired to create seamless loader with custom animations in the type of gif.",
    "homepage": "https://github.com/srujankalvacherla/skloader",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Srujan K": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/srujankalvacherla/SKLoader.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "SKLoader",
        "SKLoader/**/*.{h,m}"
    ],
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This