Skip to content

lovesomeone/UIButtonBackgroundColor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

UIButtonBackgroundColor

Set the background color of any UIButton.

Instructions

  1. Download

    From the root directory of your project's Git repository, run:

     git submodule add [email protected]:acani/UIButtonBackgroundColor.git Libraries/UIButtonBackgroundColor
    
  2. Install

    From Finder, drag the newly created directory to your project's project navigator in Xcode.

    Uncheck "Copy items if needed," select "Create groups," and uncheck all targets.

    In Xcode, remove the reference to UIButtonBackgroundColor/.gitignore.

    Add UIButtonBackgroundColor.swift to your target.

  3. Use

     myButton.setBackgroundColor(UIColor.blueColor(), forState: .Normal)
    

Released under the Unlicense.

About

Set the background color of any UIButton in Swift.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%