[![CI Status](http://img.shields.io/travis/Septiyan Andika/SAILoadingView.svg?style=flat)](https://travis-ci.org/Septiyan Andika/SAILoadingView)
To run the example project, clone the repo, and run pod install
from the Example directory first.
-
Just add SAILoadingView.swift and SAILoadingView.xib file to your project, file are present inside SAILoadingView/Classes directory.
-
SAILoadingView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SAILoadingView"
func showLoading(text:String)
Function to show loading view and text progress
func dismissLoading()
Function to dismiss loading view
func showError(text:String)
Function to show error message, if Properties onClickRetry not nil or declarede will show button retry, if onClickRetry not declared or nil button retry will be hidden
public final var onClickRetry: (Void -> Void)?
example :
var loadingView = SAILoadingView(parent: self.view)
loadingView?.onClickRetry = {
self.loadData()
}
- show retry button, and handle action when retry button clicked
Septiyan Andika, septiyan.andika@gmail.com
SAILoadingView is available under the MIT license. See the LICENSE file for more info.