Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.47 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.47 KB

Swift Tinted Button Extension

Version License Platform CocoaPods CocoaPods

A small Swift extension for tinting UIButton, like a UIBarButtonItem or a UINavigationItem.
Based on this.

alt tag

Installation

CocoaPods:

pod 'SwiftTintedButtonExtension'

Manual:

Copy SwiftTintedButtonExtension.swift to your project.

Using

self.button.setImageTintColor(UIColor.yellowColor(), state: .Normal)
self.button.setImageTintColor(UIColor.blueColor(), state: .Highlighted)

License

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