All Versions
12
Latest Version
Avg Release Cycle
117 days
Latest Release
1323 days ago

Changelog History
Page 2

  • v4.0.0 Changes

    May 10, 2017

    ๐Ÿ‘€ Anchorage 4 adds a new batching API for creating multiple constraints, with the ability to return inactive constraints if you need them. It also improves the API in many places, restructures the code to be more maintainable, and drops Swift 2.3 support. See the ReadMe for a full rundown of the current feature set.

    ๐Ÿ†• New Features

    • Batching: any constraints created in the batch will not be activated until the whole batch returns. Optionally, you can write batch(active: false) { ... } to get back inactive constraints with Auto Layout's batch-activation mechanism.
    • โž• Added sizeAnchors: you can now pin a view's size to a literal CGSize or another view's size anchors in a single line of code.
    • โž• Added support for using (UI/NS)EdgeInsets when constraining edge anchors; useful for margins when not using layoutMarginsGuide.

    ๐Ÿ‘Œ Improvements

    • Expanded and improved the use of layout priority shorthand enum from #33. This is now the preferred way to adjust priority in Anchorage.
    • โž• Added tests

    ๐Ÿ’ฅ Breaking Changes

    • โฌ‡๏ธ dropped Swift 2.3 support
    • ๐Ÿ‘€ minor changes that may make some priority-related code fail to compile. This code should be converted to the much more concise new shorthand syntax; see the ReadMe for details.
    • the following have been renamed:
      • AxisGroup โ†’ ConstraintPair
      • EdgeGroup โ†’ ConstraintGroup
      • LayoutPriority โ†’ Priority

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fixed copy/paste errors that resulted in incorrect constraints being created (9891570)
  • v3.3.0

    April 27, 2017