SimpleRoundedButton
SimpleRoundedButton is a UIButton subclass that uses @IBInspectable attributes to allow easy customization of border properties, colors and corner radius, directly from the Storyboard. Inspired by KBRoundedButton, but making use of XCode's @IBInspectable feature.
The corner radius is automatically constrained to half the button height or width. To achieve completely rounded sides, just set the value to something like 100.
Activity Indicator
Additionally, SimpleRoudedButton has a simple function to show a UIActivityIndicator.
import SimpleRoundedButton
button.startAnimating()
// do some stuff
button.stopAnimating()
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Installation
SimpleRoundedButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SimpleRoundedButton"
Usage
To use SimpleRoundedButton, simply assign SimpleRoundedButton as the custom class in the identity inspector. You need to set class and model.
Apps using this control
If you're using this control, I'd love hearing from you!
Author
Carl Gödecken, dev@mastercarl.com
License
SimpleRoundedButton is available under the MIT license. See the LICENSE file for more info.