Latest 0.0.1
Homepage https://github.com/Ekhoo/Loader
License MIT
Platforms ios 8.0, requires ARC
Authors

Loader

Version
License
Platform
SwitchLoader
Carthage Compatible
![](https://img.shields.io/badge/Swift 2-compatible-4BC51D.svg?style=flat-square)

Simple and light weight animated switch activity indicator.

Demo

Loader

Installation

CocoaPods

Loader is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "SwitchLoader", '~> 0.0.1'

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Loader into your Xcode project using Carthage, specify it in your Cartfile:

github "Ekhoo/Loader" ~> 0.0.1

Run carthage update to build the framework and drag the built Loader.framework into your Xcode project.

Usage

func myFunc() {
    let loader: Loader = Loader(frame: CGRectMake(0.0, 0.0, 80.0, 40.0))

    self.view.addSubView(loader)

    loader.startAnimating()
}

Interface

public func startAnimating() // Animate the switch activity indicator
public func stoptAnimating() // Stop Animating the switch activity indicator

public var loaderColor: UIColor // The background color
public var switchColor: UIColor // The animated switch color

Author

Lucas Ortis:

License

Inspired from this Dribbble project.
Loader is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwitchLoader",
    "version": "0.0.1",
    "summary": "Amazing animated switch activity indicator written in swift",
    "description": "Simple and light weight animated switch activity indicator.",
    "homepage": "https://github.com/Ekhoo/Loader",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Lucas Ortis": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Ekhoo/Loader.git",
        "tag": "0.0.1"
    },
    "source_files": "Source/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This