Skip to content

hgwhittle/HGWActivityButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HGWActivityButton

A UIButton subclass with a custom, built-in activity indicator

Written in Swift.

Alt text

Usage

var activityButton = HGWActivityButton(frame: CGRectMake(115, 80, 90, 90))
activityButton.backgroundColor = UIColor.orangeColor()
activityButton.setTitle("Load", forState: UIControlState.Normal)
activityButton.activityTitle = "Loading"
activityButton.rotatorColor = UIColor.darkGrayColor()
activityButton.rotatorSize = 8.0
activityButton.rotatorSpeed = 10.0
activityButton.rotatorPadding = 8.0
self.view.addSubview(activityButton)

License

HGWActivityButton is available under the MIT license. See the LICENSE file for more info.

About

A UIButton subclass with a custom, built-in activity indicator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages