GitXplorerGitXplorer
d

Buttton

public
3 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
e7a17d3c42c164108554d6fdb6a11d53dd4b8e5f

Update Xcode version

ddelba committed 9 years ago
Unverified
19b472e664404128657a0fbf4f0bc0afc7ca327c

Bump to 0.1.2

ddelba committed 9 years ago
Unverified
1496c821c2acf1446a601203627f133ac909fac3

Update README

ddelba committed 9 years ago
Unverified
4645aab9789d44865d05cfb8362c7c3990c94f42

Update license year

ddelba committed 9 years ago
Unverified
f7114bb0ec928cd5e1ed32b4935c89a21acf7417

Extract Utilities

ddelba committed 9 years ago
Unverified
a7c90206f646d757bea07dde1fabb2acfb7c85fd

Use synchronized

ddelba committed 9 years ago

README

The README file for this repository.

Buttton

Travis Status CocoaPods compatible Carthage compatible

Buttton lets you set UIButton properties for multiple states at once…

button.setTitles([
    .Normal: "Normal",
    .Highlighted: "Highlighted"
])

…and provides some missing properties:

button.setBorderColor([
    .Normal: .greenColor(),
    .Highlighted: .redColor()
])

List of missing properties:

  • background color:
    • backgroundColorForState(_:)
    • setBackgroundColor(_:forState:)
    • setBackgroundColors(_:)
  • corner radius:
    • cornerRadiusForState(_:)
    • setCornerRadius(_:forState:)
    • setCornerRadiuses(_:)
  • border width:
    • borderWidthForState(_:)
    • setBorderWidth(_:forState:)
    • setBorderWidths(_:)
  • border color:
    • borderColorForState(_:)
    • setBorderColor(_:forState:)
    • setBorderColors(_:)

Installation

Carthage

Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Buttton into your Xcode project using Carthage, specify it in your Cartfile:

github "delba/Buttton"

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

You can install it with the following command:

$ gem install cocoapods

To integrate Buttton into your Xcode project using CocoaPods, specify it in your Podfile:

use_frameworks!

pod 'Buttton'

License

Copyright (c) 2015-2016 Damien (http://delba.io)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.