Skip to content

tlextrait/TLButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TLButton

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, thomas.lextrait@gmail.com

License

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