UIButton extension for setting styles easily
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo.playground
EasyButton.xcodeproj
EasyButton.xcworkspace
Sources/EasyButton
.gitignore
EasyButton.podspec
README.md

README.md

EasyButton

Swift version CocoaPods compatible Carthage compatible

UIButton extension for setting styles easily

Usage

Example

// Set a darker color than the background color to the highlighted background color automatically
let lightColorButton = UIButton.button(title: "Hello World", titleColor: .white, backgroundColor: .orange, cornerRadius: 6)

// Set a lighter color than the background color to the highlighted background color automatically
let darkColorButton = UIButton.button(title: "Hello World", titleColor: .white, backgroundColor: .darkGray, cornerRadius: 6)

2017-12-03 1 13 44

Installation

Carthage

Cartfile

github "morishin/EasyButton"

CocoaPods

Podfile

pod 'EasyButton'

LICENSE

MIT