<commit_before># GBFlatButton
<!---
[![Version](http://cocoapod-badges.herokuapp.com/v/GBFlatButton/badge.png)](http://cocoadocs.org/docsets/GBFlatButton)
[![Platform](http://cocoapod-badges.herokuapp.com/p/GBFlatButton/badge.png)](http://cocoadocs.org/docsets/GBFlatButton)
-->

## Installation

GBFlatButton is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile:

```ruby
pod "GBFlatButton"
```

But if you don't use CocoaPods, you can just copy the `Classes` folder into your project.

## Screenshots

![Buttons example](https://raw.githubusercontent.com/barbosa/GBFlatButton/master/screenshot.png)

## Usage

To create a flat button programmatically, just instantiate a new `GBFlatButton` with a frame and add it to some view, for example:

```objc
GBFlatButton *button = [[GBFlatButton alloc] initWithFrame:CGRectMake(originX, originY, width, height)];
button.buttonColor = [UIColor orangeColor]; // or import UIColor+GBFlatButton.h and use our cool colors
[button setTitle:@"An orange button" forState:UIControlStateNormal];
[self.view addSubview:button];
```

But you can also create a `GBFlatButton` via Interface Builder. To do it, drag a `UIButton` and drop it onto your view, change its custom class to `GBFlatButton` and customize it inside its File's Owner. For example:

```objc
@implementation MyViewController ()
@property (weak, nonatomic) IBOutlet GBFlatButton *flatButton;
@end

@implementation MyViewController
- (void)viewDidLoad
{
    [super viewDidLoad];
    _flatButton.buttonColor = [UIColor orangeColor];
}
@end
```

## Author<commit_msg>Fix screenshot link.<commit_after># GBFlatButton
<!---
[![Version](http://cocoapod-badges.herokuapp.com/v/GBFlatButton/badge.png)](http://cocoadocs.org/docsets/GBFlatButton)
[![Platform](http://cocoapod-badges.herokuapp.com/p/GBFlatButton/badge.png)](http://cocoadocs.org/docsets/GBFlatButton)
-->

## Installation

GBFlatButton is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile:

```ruby
pod "GBFlatButton"
```

But if you don't use CocoaPods, you can just copy the `Classes` folder into your project.

## Screenshots

![Buttons example](https://raw.github.com/barbosa/GBFlatButton/master/screenshot.png)

## Usage

To create a flat button programmatically, just instantiate a new `GBFlatButton` with a frame and add it to some view, for example:

```objc
GBFlatButton *button = [[GBFlatButton alloc] initWithFrame:CGRectMake(originX, originY, width, height)];
button.buttonColor = [UIColor orangeColor]; // or import UIColor+GBFlatButton.h and use our cool colors
[button setTitle:@"An orange button" forState:UIControlStateNormal];
[self.view addSubview:button];
```

But you can also create a `GBFlatButton` via Interface Builder. To do it, drag a `UIButton` and drop it onto your view, change its custom class to `GBFlatButton` and customize it inside its File's Owner. For example:

```objc
@implementation MyViewController ()
@property (weak, nonatomic) IBOutlet GBFlatButton *flatButton;
@end

@implementation MyViewController
- (void)viewDidLoad
{
    [super viewDidLoad];
    _flatButton.buttonColor = [UIColor orangeColor];
}
@end
```

## Author
{'fraction_non_alphanumeric': 0.12161330049261083, 'fraction_numerical': 0.0, 'mean_word_length': 5.657786885245901, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1105378', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1036, 'n_words': 301}