The ultimate API for iOS & OS X Auto Layout — impressively simple, immensely powerful. Objective-C and Swift compatible.
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.
UIView
/NSView
have been moved to NSLayoutConstraint
. 1583f7b3dbbc519c327aec4c54d36fc77e085017
+[autoCreateConstraintsWithoutInstalling:]
+[autoSetPriority:forConstraints:]
+[autoSetIdentifier:forConstraints:]
+[NSLayoutConstraint autoCreateAndInstallConstraints:]
-[ALView configureForAutoLayout]
-[ALView autoAlignAxis:toSameAxisOfView:withMultiplier:]
-[ALView autoPinEdgesToSuperviewEdges]
-Wconversion
. f58e4b240af1aa1f17cb5c474746a675bb23d896autoCreateConstraintsWithoutInstalling:
API to return an array of created constraintsPureLayout v2.0.0 is a major release, with many new features, APIs, and enhancements. The v2.0.0 release is fully backwards compatible with Xcode 5 and iOS 6 and 7 deployment targets (OS X deployment target remains at 10.7 as well).
Upgrading from PureLayout v1.x? Check out the migration guide.
Looking to take it for a test drive? Check out the brand new demos in the example project! (Download as .zip here)
Changes include: