Latest 1.0
Homepage https://github.com/MasterCarl/SimpleRoundedButton
License MIT
Platforms ios 8.3
Authors

CI Status
Version
License
Platform

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.

XCode properties

Shaped like a Text Field
Or nicely rounded

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.

Or nicely rounded

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.

Setting the custom class

Apps using this control

If you’re using this control, I’d love hearing from you!

Author

Carl Gödecken, [email protected]

License

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

Latest podspec

{
    "name": "SimpleRoundedButton",
    "version": "1.0",
    "summary": "Simple UIButton with support for @IBInspectable attributes",
    "description": "SimpleRoundedButton is a UIButton subclass that uses @IBInspectable attributes to allow easy customization of border properties, colors and corner radius, directly from the Storyboard. 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. For instant preview, it also supports @IBDesignable.",
    "homepage": "https://github.com/MasterCarl/SimpleRoundedButton",
    "screenshots": [
        "https://github.com/MasterCarl/SimpleRoundedButton/raw/master/screenshots/xcode.png?raw=true",
        "https://github.com/MasterCarl/SimpleRoundedButton/raw/master/screenshots/1.png?raw=true"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "MasterCarl": "[email protected]"
    },
    "source": {
        "git": "https://github.com/MasterCarl/SimpleRoundedButton.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "8.3"
    },
    "source_files": "SimpleRoundedButton/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This