Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.17 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.17 KB

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