[![CI Status](http://img.shields.io/travis/Septiyan Andika Isanta/LoadingButton.svg?style=flat)](https://travis-ci.org/Septiyan Andika Isanta/LoadingButton)
To run the example project, clone the repo, and run pod install
from the Example directory first.
-
Just add
LoadingButton.swift
file to your project (LoadingButton/Classes/LoadingButton.swift
). -
LoadingButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LoadingButton"
-
Start and stop loading button
loginButton.loading = true loginButton.loading = false
-
Set position of ActivityIndicator
loginButton.indicatorAlignment = .Right signupButton.indicatorAlignment = .Left
-
Text for title label when activity indicator is animating / loading
loginButton.loadingText = "Authenticating"
-
The color of the activity indicator
loginButton.indicatorColor = UIColor.redColor()
Septiyan Andika Isanta, [email protected]
LoadingButton is available under the MIT license. See the LICENSE file for more info.