SkillAgentSearch skills...

SwiftTintedButtonExtension

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

Install / Use

/learn @maximbilan/SwiftTintedButtonExtension
About this skill

Quality Score

0/100

Category

Design

Supported Platforms

Universal

README

Swift Tinted Button Extension

Version License Platform CocoaPods CocoaPods

A small <i>Swift</i> extension for tinting <i>UIButton</i>, like a <i>UIBarButtonItem</i> or a <i>UINavigationItem</i>.<br> Based on <a href="https://github.com/filipstefansson/UITintedButton">this</a>.

alt tag

Installation

<b>CocoaPods:</b>

<pre> pod 'SwiftTintedButtonExtension' </pre>

<b>Manual:</b></br>

<pre> Copy <i>SwiftTintedButtonExtension.swift</i> to your project. </pre>

Using

<pre> self.button.setImageTintColor(UIColor.yellowColor(), state: .Normal) self.button.setImageTintColor(UIColor.blueColor(), state: .Highlighted) </pre>

License

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

View on GitHub
GitHub Stars5
CategoryDesign
Updated2y ago
Forks1

Languages

Swift

Security Score

75/100

Audited on Nov 6, 2023

No findings