<commit_before>UIView+AutoLayout
=================

A carefully-crafted category on `UIView` (and a one-method category on `NSLayoutConstraint`) that provides a simpler interface for creating Auto Layout constraints.

The goal is to provide a pleasant API for the vast majority of common Auto Layout use cases. It's designed for clarity and simplicity while simultaneously minimizing the amount of third party code. The API takes inspiration from the Auto Layout UI options available in Interface Builder.

API Cheat Sheet
---------------

This is just a handy overview of the primary methods. Check out the [header file](https://github.com/smileyborg/UIView-AutoLayout/blob/master/Source/UIView%2BAutoLayout.h) for the full API and documentation.

*Note: all of the API methods begin with `auto...` for easy autocompletion!*

**UIView**

*	\+ autoSetPriority:forConstraints:
*	\+ removeConstraint(s):
*	\- removeAllConstraintsFromViewAndSubviews
*	\- autoCenterInSuperview(AlongAxis:)
*	\- autoPinCenterAxis:toPositionInSuperview:
*	\- autoPinEdge:toPositionInSuperview:
*	\- autoPinEdge(s)ToSuperviewEdge(s):withInset(s):
*	\- autoPinEdge:toEdge:ofView:(withOffset:)
*	\- autoAlignAxis:toSameAxisOfView:(withOffset:)
*	\- autoMatchDimension:toDimension:ofView:(withOffset:)
*	\- autoMatchDimension:toDimension:ofView:(withMultiplier:)
*	\- autoSetDimension(s)ToSize:

*Advanced methods that layout an array of subviews:*

*	\- autoAlignSubviews:toEdge:
*	\- autoAlignSubviews:toAxis:
*	\- autoMatchSubviews:dimension:
*	\- autoSetSubviews:dimension:toSize:
*	\- autoDistributeSubviews:alongAxis:withFixedSpacing:alignment:
*	\- autoDistributeSubviews:alongAxis:withFixedSize:alignment:

**NSLayoutConstraint**

*	\- remove

Setup
-----
*Note: you must be developing for iOS 6.0 or later to use Auto Layout.*

**Manually from GitHub**
<commit_msg>Update README to reflect new API<commit_after>UIView+AutoLayout
=================

A carefully-crafted category on `UIView` (and a one-method category on `NSLayoutConstraint`) that provides a simpler interface for creating Auto Layout constraints.

The goal is to provide a pleasant API for the vast majority of common Auto Layout use cases. It's designed for clarity and simplicity while simultaneously minimizing the amount of third party code. The API takes inspiration from the Auto Layout UI options available in Interface Builder.

API Cheat Sheet
---------------

This is just a handy overview of the primary methods. Check out the [header file](https://github.com/smileyborg/UIView-AutoLayout/blob/master/Source/UIView%2BAutoLayout.h) for the full API and documentation.

*Note: all of the API methods begin with `auto...` for easy autocompletion!*

**UIView**

*	\+ removeConstraint(s):
*	\- removeAllConstraintsAffectingView
*	\- removeAllConstraintsAffectingViewAndSubviews
*	\+ autoSetPriority:forConstraints:
*	\- autoCenterInSuperview(AlongAxis:)
*	\- autoPinCenterAxis:toPositionInSuperview:
*	\- autoPinEdge:toPositionInSuperview:
*	\- autoPinEdge(s)ToSuperviewEdge(s):withInset(s):
*	\- autoPinEdge:toEdge:ofView:(withOffset:)
*	\- autoAlignAxis:toSameAxisOfView:(withOffset:)
*	\- autoMatchDimension:toDimension:ofView:(withOffset:)
*	\- autoMatchDimension:toDimension:ofView:(withMultiplier:)
*	\- autoSetDimension(s)ToSize:

*Advanced methods that layout an array of subviews:*

*	\- autoAlignSubviews:toEdge:
*	\- autoAlignSubviews:toAxis:
*	\- autoMatchSubviews:dimension:
*	\- autoSetSubviews:dimension:toSize:
*	\- autoDistributeSubviews:alongAxis:withFixedSpacing:alignment:
*	\- autoDistributeSubviews:alongAxis:withFixedSize:alignment:

**NSLayoutConstraint**

*	\- remove

Setup
-----
*Note: you must be developing for iOS 6.0 or later to use Auto Layout.*

**Manually from GitHub**

{'fraction_non_alphanumeric': 0.1189146049481245, 'fraction_numerical': 0.0015961691939345571, 'mean_word_length': 5.449399656946826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7669007', 'n_tokens_mistral': 1126, 'n_tokens_neox': 1091, 'n_words': 310}