Skip to content

maximbilan/SwiftTintedButtonExtension

Repository files navigation

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.

About

A small Swift extension for tinting UIButton, like a UIBarButtonItem or a UINavigationItem

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published