GitHunt
AL

aledustet/RNLoadingButton-Swift

An easy-to-use UIButton subclass with an activity indicator

RNLoadingButton(Swift)

RNLoadingButotn(Swift) is based on RNLoadingButton write in Objective-C.

Used in Zee - Personal Finances.

https://itunes.apple.com/us/app/id422694086

An easy-to-use UIButton subclass with an activity indicator.

The activity state is configurable and can hide the image or text while the activity indicator is displaying .
You can Also choose the position of easily activity indicator or Set It up with a spacing.


Adding RNLoadingButton(Swift) to your project

Cocoapods

  1. Add a pod entry for RNActivityView to your Podfile pod 'RNLoadingButton(Swift)'
  2. Install the pod(s) by running pod install.

Manually

  1. Drag RNLoadingButton.swift to your project

Using RNLoadingButton(Swift)

//Mark: Can usage with Nib
// Configure State
btn1.hideTextWhenLoading = false
btn1.loading = false
btn1.activityIndicatorAlignment = RNActivityIndicatorAlignment.Right
btn1.activityIndicatorEdgeInsets = UIEdgeInsetsMake(0, 50, 0, 10)
btn1.setTitle("connecting", forState: UIControlState.Disabled)

Languages

Swift97.1%Ruby2.9%

Contributors

MIT License
Created September 8, 2015
Updated September 8, 2015
aledustet/RNLoadingButton-Swift | GitHunt