Changelog for all versions

Align 2

Align 2.4.0

June 21, 2020

Align 2.3.0

June 20, 2020

Align 2.2.1

June 18, 2020

Align 2.2.0

June 18, 2020

Align 2.1.0

June 17, 2020

Use Migraiton Guide included in the repo to ease migration.

Align 2.0.0

June 17, 2020

Use Migraiton Guide included in the repo to ease migration.

Align 1

Align 1.2.1

Align 1.2

Align 1.1

Align 1.0

Updated to Swift 4.2 (required) and Xcode 10.

Align 0.6

A minor update to make Align a bit more ergonomic.

Align 0.5.1

Align 0.5

Align 0.4

Align 0.3.1

Small update that focuses on improving offsetting(by:) method.

Align 0.3

Now you can manipulate multiple edges at the same time instead:

view.addSubview(stack) {
    $0.edges.pinToSuperview() // pins the edges to fill the superview
    $0.edges.pinToSuperview(insets: Insets(10)) // with insets
    $0.edges.pinToSuperviewMargins() // or margins

    $0.edges(.left, .right).pinToSuperview() // fill along horizontal axis
    $0.centerY.alignWithSuperview() // center along vertical axis
}

This is a much simpler model which removes entire layer of standalone methods available on LayoutItems. Now you always select either an anchor or collections of anchors, then use their methods to add constraints. Much simpler.

Align 0.2

Align 0.1.1

Align 0.1