Skip to content

morishin/EasyButton

Repository files navigation

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

About

UIButton extension for setting styles easily

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published