<commit_before>BFPaperView
=============
[![CocoaPods](https://img.shields.io/cocoapods/v/BFPaperView.svg?style=flat)](https://github.com/bfeher/BFPaperView)

> A flat button inspired by Google Material Design's Paper theme.

![Animated Screenshot](https://raw.githubusercontent.com/bfeher/BFPaperView/master/BFPaperViewDemoGif.gif "Animated Screenshot")


About
---------
_BFPaperView_ is a subclass of UIView that behaves much like the new paper buttons from Google's Material Design Labs.
All animation are asynchronous and are performed on sublayers.
BFPaperViews work right away with pleasing default behaviors, however they can be easily customized! The corner radius, tap-circle color, background fade color, and tap-circle diameter are all readily customizable via public properties.

BFPaperViews come in 2 flavors, Flat or Raised. 
Flat BFPaperViews have no shadow and will remain flat through all animations. Flat buttons can be transparent, in which case the background will also fade a little when tapped.
Raised BFPaperViews have a drop shadow that animates along with a tap, giving it the feeling of raising up with your touch. Raised BFPaperViews do not look good with a clear background color since it will expose their shadow layer underneath.

By default, BFPaperViews use "Smart Color" which will match the tap-circle and background fade colors to the color of the `titleLabel`.
You can turn off Smart Color by setting the property, `.usesSmartColor` to `NO`. If you disable Smart Color, a gray color will be used by default for both the tap-circle and the background color fade.
You can set your own colors via: `.tapCircleColor` and `.backgroundFadeColor`. Note that setting these disables Smart Color.

***Note*** *that setting the view type to Custom in the Storyboard is required to prevent the title from fading out on UIControlStateHighlighted.*

## Properties
`CGFloat cornerRadius` <br />
The corner radius which propagates through to the sub layers.

`UIColor *tapCircleColor` <br />
The UIColor to use for the circle which appears where you tap. NOTE: Setting this defeats the "Smart Color" ability of the tap circle. Alpha values less than 1 are recommended.

`UIColor *backgroundFadeColor` <br />
The UIColor to fade clear backgrounds to. NOTE: Setting this defeats the "Smart Color" ability of the background fade. An alpha value of 1 is recommended, as the fade is a constant (clearBGFadeConstant) defined in the BFPaperView.m. This bothers me too.
<commit_msg>fixed some copypasta errors in the README<commit_after>BFPaperView
=============
[![CocoaPods](https://img.shields.io/cocoapods/v/BFPaperView.svg?style=flat)](https://github.com/bfeher/BFPaperView)

> A flat view inspired by Google Material Design's Paper theme.

![Animated Screenshot](https://raw.githubusercontent.com/bfeher/BFPaperView/master/BFPaperViewDemoGif.gif "Animated Screenshot")


About
---------
_BFPaperView_ is a subclass of UIView that behaves much like the new paper views from Google's Material Design Labs.
All animation are asynchronous and are performed on sublayers.
BFPaperViews work right away with pleasing default behaviors, however they can be easily customized! The corner radius, tap-circle color, background fade color, and tap-circle diameter are all readily customizable via public properties.

BFPaperViews come in 2 flavors, Flat or Raised. 
Flat BFPaperViews have no shadow and will remain flat through all animations. Flat views can be transparent, in which case the background will also fade a little when tapped.
Raised BFPaperViews have a drop shadow that animates along with a tap, giving it the feeling of raising up with your touch. Raised BFPaperViews do not look good with a clear background color since it will expose their shadow layer underneath.

By default, BFPaperViews use "Smart Color" which will match the tap-circle and background fade colors to the color of the `titleLabel`.
You can turn off Smart Color by setting the property, `.usesSmartColor` to `NO`. If you disable Smart Color, a gray color will be used by default for both the tap-circle and the background color fade.
You can set your own colors via: `.tapCircleColor` and `.backgroundFadeColor`. Note that setting these disables Smart Color.

***Note*** *that setting the view type to Custom in the Storyboard is required to prevent the title from fading out on UIControlStateHighlighted.*

## Properties
`CGFloat cornerRadius` <br />
The corner radius which propagates through to the sub layers.

`UIColor *tapCircleColor` <br />
The UIColor to use for the circle which appears where you tap. NOTE: Setting this defeats the "Smart Color" ability of the tap circle. Alpha values less than 1 are recommended.

`UIColor *backgroundFadeColor` <br />
The UIColor to fade clear backgrounds to. NOTE: Setting this defeats the "Smart Color" ability of the background fade. An alpha value of 1 is recommended, as the fade is a constant (clearBGFadeConstant) defined in the BFPaperView.m. This bothers me too.

{'fraction_non_alphanumeric': 0.06461906661348225, 'fraction_numerical': 0.0011966493817311527, 'mean_word_length': 4.851808634772462, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 6, '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': '7496257', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1281, 'n_words': 690}