Latest 0.1.0
Homepage https://github.com/tlextrait/TLButton
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Interface Builder

TLButton is IBDesignable and therefore works with Interface Builder. This allows you to customize your buttons, such as setting rounded corners or shadows and view the result directly in your storyboard:

Interface Builder

Events

TLButton allows you to pass a code block to the button for given events.

button.on(event: .touchUpInside) {
    print("Tapped button")
}

Requirements

Swift 3.0+

Installation

TLButton is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "TLButton"

Author

Thomas Lextrait, [email protected]

License

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

Latest podspec

{
    "name": "TLButton",
    "version": "0.1.0",
    "summary": "Create buttons using less code and customize them more from Interface Builder.",
    "description": "TLButton allows you to create buttons with less code, as well as customize them more in depth directly from the Interface Builder. TLButton allows setting corner radius, shadows and more from the Interface Builder and let you see the results directly in your storyboard. TLButton also takes code blocks for events, allowing you to write shorter and cleaner code.",
    "homepage": "https://github.com/tlextrait/TLButton",
    "screenshots": "https://cloud.githubusercontent.com/assets/1252930/20643826/b7a9a864-b3f0-11e6-8b89-ed8ee8dd08af.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Thomas Lextrait": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tlextrait/TLButton.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "TLButton/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This