-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
# BorderButton | ||
Subclass of UIButton that gives a colored border around a UIButton. The subclass takes the ```textColor``` attribute and creates a border with that color. When a user presses the button, it will change to be filled with the border color creating a solid color button. | ||
|
||
![](readmeassets/screenshot2.png) | ||
|
||
# Basic Usage | ||
To give a button a colored border set the class of the UIButton to ```BorderButton``` in your Storyboard or nib. | ||
|
||
![](readmeassets/screenshot1.png) | ||
|
||
If the buttons width and height are equal the class will add a circular border around the buttons frame. If the width and height are not equal, the border will be a rectangle with rounded edges. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.