PureLayout v3.0.0 Release Notes
Release Date: 2015-08-17 // over 8 years ago-
๐ PureLayout v3.0.0 is a major release, with new APIs, enhancements, and other changes. The v3.0.0 release remains fully backwards compatible with Xcode 5, iOS 6, and OS X 10.7.
โฌ๏ธ Upgrading from PureLayout v2.x? Check out the migration guide.
๐ฅ Breaking Changes from v2.x
- ๐ The following class methods on
UIView
/NSView
have been moved toNSLayoutConstraint
. 1583f7b+[autoCreateConstraintsWithoutInstalling:]
+[autoSetPriority:forConstraints:]
+[autoSetIdentifier:forConstraints:]
- ๐ The methods deprecated in PureLayout v2.0.0 have been removed entirely. 6d20408
โ Additions
- ๐ New API to batch create, activate, and return all constraints within a block. c2bcb1f
+[NSLayoutConstraint autoCreateAndInstallConstraints:]
- ๐ New API to configure an initialized view for use with auto layout (thanks @vivianforzj). e2e75ab
-[ALView configureForAutoLayout]
- ๐ New API to align a view's axis to another view's axis with a multiplier (thanks @s0mmer). c5a4dc2
-[ALView autoAlignAxis:toSameAxisOfView:withMultiplier:]
- ๐ New API to pin a view's edges to its superview's edges with zero insets (thanks @pfleiner). c97a577
-[ALView autoPinEdgesToSuperviewEdges]
โจ Enhancements
- Generics have been added throughout the entire codebase. b030f4f bcd91bf 571de94
- Nullability annotations have been added for all headers. b030f4f
- ๐ The methods to distribute views now support distributing an array containing a single view (thanks @pnc). a66c620
๐ Fixes
- ๐ Fixed a warning when compiling using
-Wconversion
. f58e4b2
- ๐ The following class methods on