Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maximbilan/swifttintedbuttonextension

A small Swift extension for tinting UIButton, like a UIBarButtonItem or a UINavigationItem
https://github.com/maximbilan/swifttintedbuttonextension

ios swift swift-extensions tinted ui ui-components ui-design uibutton uikit

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

## Swift Tinted Button Extension

[![Version](https://img.shields.io/cocoapods/v/SwiftTintedButtonExtension.svg?style=flat)](http://cocoadocs.org/docsets/SwiftTintedButtonExtension)
[![License](https://img.shields.io/cocoapods/l/SwiftTintedButtonExtension.svg?style=flat)](http://cocoadocs.org/docsets/SwiftTintedButtonExtension)
[![Platform](https://img.shields.io/cocoapods/p/SwiftTintedButtonExtension.svg?style=flat)](http://cocoadocs.org/docsets/SwiftTintedButtonExtension)
[![CocoaPods](https://img.shields.io/cocoapods/dt/SwiftTintedButtonExtension.svg)](https://cocoapods.org/pods/SwiftTintedButtonExtension)
[![CocoaPods](https://img.shields.io/cocoapods/dm/SwiftTintedButtonExtension.svg)](https://cocoapods.org/pods/SwiftTintedButtonExtension)

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

Based on this.

![alt tag](https://raw.github.com/maximbilan/SwiftTintedButtonExtension/master/img/4.png)

## 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.