
Simple and light weight animated switch activity indicator.
Loader is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod"SwitchLoader",'~> 0.0.1'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 carthageTo 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.
func myFunc(){letloader:Loader=Loader(frame:CGRectMake(0.0,0.0,80.0,40.0))self.view.addSubView(loader)
loader.startAnimating()}publicfunc startAnimating() // Animate the switch activity indicator
public func stoptAnimating() // Stop Animating the switch activity indicator
publicvarloaderColor:UIColor // The background color
publicvarswitchColor:UIColor // The animated switch colorLucas Ortis:
Inspired from this Dribbble project. Loader is available under the MIT license. See the LICENSE file for more info.

