<commit_before># DJWInsetFillButton

A UIButton replacement, that has an inset fill when highlighted. Allows for styling of the following:

* Border color
* Border corner radius
* Highlighted state background color
* Font

The class is also designed for use in IB, and is completely IB_Designable, and every property IBInspectable.
This class uses AutoLayout and requires a constraints based layout.

## Demo

![Screenshot](https://raw.githubusercontent.com/danwilliams64/DJWInsetFillButton/master/Images/example.gif)

## Usage

Create a new instance of DJWInsetFillButton, just as you would any other view.

```objective-c
  DJWInsetFillButton *button = [[DJWInsetFillButton alloc] init];
  button.title = @"Hello, world!";
  [self.view addSubView: button];
```
The button's intrinsic content size is updated when the button's title changes, so that it can always resize itself appropriately.

## Installation

Simply add `DJWInsetFillButton` to your Podfile if you're using Cocoapods. Alternatively, add `DJWInsetFillButton.h` and `DJWInsetFillButton.m` to your project. Included in this repository is a demo application, showing the project in action.

## License

DJWInsetFillButton is licensed under the [MIT license](https://raw.githubusercontent.com/danwilliams64/DJWInsetFillButton/master/LICENSE.md).<commit_msg>Update README.<commit_after># DJWInsetFillButton

A UIButton replacement, that has an inset fill when highlighted. Allows for styling of the following:

* Border color
* Border corner radius
* Highlighted state background color
* Font
* The normal control state's title color takes on the view's `tintColor` property.

The class is also designed for use in IB, and is completely IB_Designable, and every property IBInspectable.
This class uses AutoLayout and requires a constraints based layout.

## Demo

![Screenshot](https://raw.githubusercontent.com/danwilliams64/DJWInsetFillButton/master/Images/example.gif)

## Usage

Create a new instance of DJWInsetFillButton, just as you would any other view.

```objective-c
  DJWInsetFillButton *button = [[DJWInsetFillButton alloc] init];
  button.title = @"Hello, world!";
  [self.view addSubView: button];
```
The button's intrinsic content size is updated when the button's title changes, so that it can always resize itself appropriately.

## Installation

Simply add `DJWInsetFillButton` to your Podfile if you're using Cocoapods. Alternatively, add `DJWInsetFillButton.h` and `DJWInsetFillButton.m` to your project. Included in this repository is a demo application, showing the project in action.

## License

DJWInsetFillButton is licensed under the [MIT license](https://raw.githubusercontent.com/danwilliams64/DJWInsetFillButton/master/LICENSE.md).
{'fraction_non_alphanumeric': 0.07666911225238444, 'fraction_numerical': 0.00293470286133529, 'mean_word_length': 5.416470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '845241', 'n_tokens_mistral': 830, 'n_tokens_neox': 769, 'n_words': 298}