A small Swift extension for tinting UIButton, like a UIBarButtonItem or a UINavigationItem.
Based on this.
CocoaPods:
pod 'SwiftTintedButtonExtension'
Manual:
Copy SwiftTintedButtonExtension.swift to your project.
self.button.setImageTintColor(UIColor.yellowColor(), state: .Normal) self.button.setImageTintColor(UIColor.blueColor(), state: .Highlighted)
SwiftTintedButtonExtension is available under the MIT license. See the LICENSE file for more info.