Skip to content

ElectricPeelSoftware/EPSAutolayoutEasyLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EPSAutolayoutEasyLayout

A Category on NSLayoutConstraint that aligns and spaces arrays of views.

Usage

// Aligns an array of views based on the specified attribute.
[self addConstraints:[NSLayoutConstraint alignViews:viewsToAlign byAttribute:NSLayoutAttributeBottom]];

// Vertically spaces views with the specified spacing.
[self addConstraints:[NSLayoutConstraint horizontallySpaceViews:viewsToAlign withSpacing:50]];

// Horizontally spaces views with the specified spacing.
[self addConstraints:[NSLayoutConstraint verticallySpaceViews:viewsToAlign withSpacing:50]];

Installation

EPSAutolayoutEasyLayout is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "EPSAutolayoutEasyLayout"

Alternatively, add all files from the “Classes” folder to your project.

About

A Category on NSLayoutConstraint that aligns and spaces arrays of views.

Resources

License

Stars

Watchers

Forks

Packages

No packages published