PureLayout v3.0.0 Release Notes

Release Date: 2015-08-17 // about 7 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 to NSLayoutConstraint. 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