<commit_before># Support Notice

Because of recent Apple anouncements that will remove skeumorphism, LDGradientButton will not be supported in iOS 7. As a replacement, I would recommend looking into live blur buttons which seem to be the new way of iOS. Thank you for your interest.

# LDGradientButton

LDGradientButton is meant to be a replacement for the Apple stock UIButton. It can easily be created either programmatically or with the Storyboard. It also supports the UIAppearence protocol for setting the tint color.

<img src="https://dl.dropbox.com/u/20180054/Github%20Resources/screenshot1.png" height="50%"/>

## Installation

### Manually
Download the zip of the project and put the "LDGradientButton" folder in your project. Then simply import "LDGradientButton.h" in the file(s) you would like to use it in.

### CocoaPods
Add this to your Podfile: ```pod 'LDGradientButton', '>= 0.0.1'```

To learn more about CocoaPods, please visit their [website](http://cocoapods.org).

## Contributions

If you have any ideas for improvements or bug fixes, please submit an issue or fork the repository to contribute. Otherwise, please send any other great ideas to <<EMAIL>>.

## Examples

### Button With Specific Tint Color
```objc
LDGradientButton *gradientButton = [[LDGradientButton alloc] initWithFrame:CGRectMake(0, 0, 200, 100)];
gradientButton.tintColor = [UIColor orangeColor];

[self.view addSubview:gradientButton];
```

### Button With Specific Colors
```objc
LDGradientButton *gradientButton = [[LDGradientButton alloc] initWithFrame:CGRectMake(0, 0, 150, 50)];
gradientButton.title = @"Example Button";
gradientButton.normalTextColor = [UIColor blackColor];
gradientButton.highlightTextColor = [UIColor grayColor];
gradientButton.topColor = [UIColor colorWithRed:0.98f green:0.98f blue:0.98f alpha:1.00f];
gradientButton.bottomColor = [UIColor colorWithRed:0.87f green:0.87f blue:0.87f alpha:1.00f];
gradientButton.borderColor = [UIColor blackColor];
    
[self.view addSubview:gradientButton];
```

## Customization
### UIAppearence
LDGradientButton supports setting a global tint color default for all of the LDGradientButtons in an entire app.
```objc
[[LDGradientButton appearance] setTintColor:[UIColor redColor]];
```

### Properties
Here are the properties that you can set on each LDGradientButton:

* title
* tintColor (recalculates border color and button gradient)
* borderColor
* topColor & bottomColor (used to calculate the normal and highlight gradient)
* normalTextColor & highlightTextColor

## License (MIT)

Copyright (C) 2013 <NAME> <<EMAIL>>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<commit_msg>Update README for iOS 7 style conversion<commit_after># Support Notice

Because of recent Apple anouncements that will remove skeumorphism, LDGradientButton will not be supported in iOS 7. As a replacement, I would recommend looking into live blur buttons which seem to be the new way of iOS. Thank you for your interest.

If you still want to use on iOS 7, the gradients will automatically be converted a solid color with an outline.

# LDGradientButton

LDGradientButton is meant to be a replacement for the Apple stock UIButton. It can easily be created either programmatically or with the Storyboard. It also supports the UIAppearence protocol for setting the tint color.

![screenshot](https://dl.dropbox.com/u/20180054/Github%20Resources/screenshot1.png)

## Installation

### Manually
Download the zip of the project and put the "LDGradientButton" folder in your project. Then simply import "LDGradientButton.h" in the file(s) you would like to use it in.

### CocoaPods
Add this to your Podfile: ```pod 'LDGradientButton', '>= 0.0.1'```

To learn more about CocoaPods, please visit their [website](http://cocoapods.org).

## Contributions

If you have any ideas for improvements or bug fixes, please submit an issue or fork the repository to contribute. Otherwise, please send any other great ideas to <<EMAIL>>.

## Examples

### Button With Specific Tint Color
```objc
LDGradientButton *gradientButton = [[LDGradientButton alloc] initWithFrame:CGRectMake(0, 0, 200, 100)];
gradientButton.tintColor = [UIColor orangeColor];

[self.view addSubview:gradientButton];
```

### Button With Specific Colors
```objc
LDGradientButton *gradientButton = [[LDGradientButton alloc] initWithFrame:CGRectMake(0, 0, 150, 50)];
gradientButton.title = @"Example Button";
gradientButton.normalTextColor = [UIColor blackColor];
gradientButton.highlightTextColor = [UIColor grayColor];
gradientButton.topColor = [UIColor colorWithRed:0.98f green:0.98f blue:0.98f alpha:1.00f];
gradientButton.bottomColor = [UIColor colorWithRed:0.87f green:0.87f blue:0.87f alpha:1.00f];
gradientButton.borderColor = [UIColor blackColor];
    
[self.view addSubview:gradientButton];
```

## Customization
### UIAppearence
LDGradientButton supports setting a global tint color default for all of the LDGradientButtons in an entire app.
```objc
[[LDGradientButton appearance] setTintColor:[UIColor redColor]];
```

### Properties
Here are the properties that you can set on each LDGradientButton:

* title
* tintColor (recalculates border color and button gradient)
* borderColor
* topColor & bottomColor (used to calculate the normal and highlight gradient)
* normalTextColor & highlightTextColor

## License (MIT)

Copyright (C) 2013 <NAME> <<EMAIL>>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

{'fraction_non_alphanumeric': 0.07427019687712152, 'fraction_numerical': 0.016293279022403257, 'mean_word_length': 5.4898678414096915, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 16, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4832855', 'n_tokens_mistral': 2083, 'n_tokens_neox': 1890, 'n_words': 917}