<commit_before>#KBRoundedButton
allows you to create beautiful rounded rect button with dynamic colors and activity indicator, completly in Interface Builder.

<!--
![Animation](https://raw.githubusercontent.com/burczyk/KBRoundedButton/master/assets/animation.gif)
-->

Button's corners alre always rounded to half of it's height.

##Setting colors
You can set colors for each state of the button in both code and Interface builder. Both background colors and title colors are supported. Set of colors:

```
@property (nonatomic, strong) UIColor *backgroundColorForStateNormal;
@property (nonatomic, strong) UIColor *backgroundColorForStateSelected;
@property (nonatomic, strong) UIColor *backgroundColorForStateHighlighted;
@property (nonatomic, strong) UIColor *backgroundColorForStateSelectedAndHighlighted;
@property (nonatomic, strong) UIColor *backgroundColorForStateDisabled;

@property (nonatomic, strong) UIColor *titleColorForStateNormal;
@property (nonatomic, strong) UIColor *titleColorForStateSelected;
@property (nonatomic, strong) UIColor *titleColorForStateHighlighted;
@property (nonatomic, strong) UIColor *titleColorForStateSelectedAndHighlighted;
@property (nonatomic, strong) UIColor *titleColorForStateDisabled;
```

Setting them in IB is very easy: all you have to do is to set a class of your button to `KBRoundedButton` and `User Defined Runtime Attributes` for a subset of properties from above.<commit_msg>Added gif<commit_after>#KBRoundedButton
allows you to create beautiful rounded rect button with dynamic colors and activity indicator, completly in Interface Builder.

![Animation](https://raw.githubusercontent.com/burczyk/KBRoundedButton/master/assets/animation.gif)

Button's corners alre always rounded to half of it's height.

##Setting colors
You can set colors for each state of the button in both code and Interface builder. Both background colors and title colors are supported. Set of colors:

```
@property (nonatomic, strong) UIColor *backgroundColorForStateNormal;
@property (nonatomic, strong) UIColor *backgroundColorForStateSelected;
@property (nonatomic, strong) UIColor *backgroundColorForStateHighlighted;
@property (nonatomic, strong) UIColor *backgroundColorForStateSelectedAndHighlighted;
@property (nonatomic, strong) UIColor *backgroundColorForStateDisabled;

@property (nonatomic, strong) UIColor *titleColorForStateNormal;
@property (nonatomic, strong) UIColor *titleColorForStateSelected;
@property (nonatomic, strong) UIColor *titleColorForStateHighlighted;
@property (nonatomic, strong) UIColor *titleColorForStateSelectedAndHighlighted;
@property (nonatomic, strong) UIColor *titleColorForStateDisabled;
```

Setting them in IB is very easy: all you have to do is to set a class of your button to `KBRoundedButton` and `User Defined Runtime Attributes` for a subset of properties from above.
{'fraction_non_alphanumeric': 0.07395723799509288, 'fraction_numerical': 0.0, 'mean_word_length': 7.443786982248521, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '3330337', 'n_tokens_mistral': 756, 'n_tokens_neox': 725, 'n_words': 286}