Skip to content

Releases: kean/Align

Align 3.2

13 Apr 17:56
Compare
Choose a tag to compare
  • Remove deprecated .base property
  • Increase the minimum supported Xcode version to 14.3
  • Increase the minimum supported platforms to iOS 13.0, tvOS 13.0, macOS 10.15

Align 3.1.0

22 Jul 14:22
Compare
Choose a tag to compare
  • Use static linking by default
  • Fix warnings in Xcode 15

Align 3.0.0

13 Jul 14:57
Compare
Choose a tag to compare
  • Breaking Change: The Alignment used in pin() method now works slightly differently by default for the pre-defined .trailing, .leading, .bottom, and .top alignments. Previously, .leading alignment would pin to the view to the .leading horizontal guide and .fill the view vertically. In Align 3.0, it centers the view vertically instead.
  • Add new documentation created using DocC
  • Increase the minimum required Xcode version to 13.3
  • Increase the minimum supported platforms to iOS 12.0 / tvOS 12.0 / macOS 10.14
  • Rename LayoutAnchors/base to LayoutAnchors/item
  • Move Alignment to AnchorCollectionEdges/Alignment
  • Fix typos

Align 2.4.1

21 Jun 17:53
Compare
Choose a tag to compare
  • Fix typo in Alignment

Align 2.4.0

21 Jun 17:29
Compare
Choose a tag to compare
  • Add Cheat Sheet
  • Remove anchors.margins and anchors.safeArea APIs
  • Documentation improvements

Align 2.3

21 Jun 01:53
Compare
Choose a tag to compare

This release focuses on filling the remaining gaps in the API.

  • Constraints type now conforms to Collection protocol (backed by Array)
  • Add Constraints activate() and deactivate() methods
  • Add clamp(to limit: ClosedRange<CGFloat>) API for dimension anchors
  • Add default insets argument for AnchorCollectionEdges equal method
  • Replace the target parameter of AnchorCollectionEdges equal method with LayoutItem
  • Add AnchorCollectionEdges variant that works with CGFloat
  • Add AnchorCollectionEdges lessThatOrEqual() method
  • Fix AnchorCollectionCenter lessThatOrEqual() method
  • Replace the target parameter of AnchorCollectionCenter method with LayoutItem
  • Performance optimizations

Align 2.2.1

18 Jun 14:50
Compare
Choose a tag to compare
  • Add a missing version of pin() that works with CGFloat as insets

Align 2.2

18 Jun 13:15
Compare
Choose a tag to compare
  • Add missing Core APIs for collections

Align 2.1

18 Jun 02:12
Compare
Choose a tag to compare

Use Migraiton Guide included in the repo to ease migration.

  • Remove all deprecated APIs. If you are migrating from the previous version, consider migrating to version 2.0.0 first. It is going to guide you throught the migration.

Align 2.0

18 Jun 02:00
Compare
Choose a tag to compare

Use Migraiton Guide included in the repo to ease migration.

  • Add macOS support
  • Add new low-level APIs: equal, greaterThanOrEqual, lessThatOrEqual
  • Add spacing() method for alignments
  • Rename uncler .al to .anchors
  • Remove .al version accepting closure
  • Add constraints property to Constraints type to allow access to all of the constraints created using it
  • Add activate parameter to Constraints initiliazer to optionally disable automatic activation of constraints
  • Deprecated func edges(_ edges: LayoutEdge...), use pin(axis:) insteads
  • pin() methods now use .leading and .trailing anchors intead of absolute .left and .right anchors. To switch to absolute anchors, use absolute(): view.anchors.edges.absolute()
  • Remove addSubview family of APIs
  • Migrate to Swift 5.1
  • Increase minimum required platform versions