Skip to content

Releases: kean/Align

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

Align 1.2.1

01 Sep 06:19
Compare
Choose a tag to compare
  • Add support for Swift Package Manager 5.0

Align 1.2

20 Jun 16:42
Compare
Choose a tag to compare
  • Rebrand

Align 1.1

07 Apr 19:06
Compare
Choose a tag to compare
  • Add Swift 5.0 support
  • Remove Swift 4.0 and Swift 4.1 support
  • Remove iOS 9, tvOS 9 support

Align 1.0

02 Oct 06:09
Compare
Choose a tag to compare

Updated to Swift 4.2 (required) and Xcode 10.

Align 0.6

21 May 18:11
Compare
Choose a tag to compare

A minor update to make Align a bit more ergonomic.

  • Add iOS 9 and tvOS 9 compatibility (used to require iOS 10 and tvOS 10).
  • Add operators for setting multipliers: view.height.match(view.width * 2).
  • Deprecated align(with:...) and match(:...) methods which had offset and multiplier parameters. Operators are the preferred way to set those (more compact and more obvious what they mean).
  • Move phantom types (e.g. AnchorAxisVertical) into namespaces to reduce clutter in a global namespace.

Align 0.5.1

02 Mar 12:06
Compare
Choose a tag to compare
  • Improve documentation
  • Improve some minor implementation details
  • Update project to Xcode 9.3 recommended settings

Align 0.5

10 Jan 18:25
Compare
Choose a tag to compare
  • Remove Stacks and Spacers (gist)
  • Remove Insets

Align 0.4

29 Dec 15:51
Compare
Choose a tag to compare
  • pinToSuperviewMargins methods now use margin attributes (e.g. .topMargin) and not layoutMarginsGuide to workaround issues on iOS 10 where layout guides are unpredictable https://stackoverflow.com/questions/32694124/auto-layout-layoutmarginsguide
  • Add pinToSafeArea(of:) family of methods which use safeAreaLayoutGuide on iOS 11 and fall back to topLayoutGuide and bottomLayoutGuide on iOS 10
  • addSubview methods are no longer generic which allows for more extra flexibility when adding constraints (e.g. you can create and operate on an array of layout proxies)