Releases: kean/Align
Releases · kean/Align
Align 3.2
Align 3.1.0
- Use static linking by default
- Fix warnings in Xcode 15
Align 3.0.0
- Breaking Change: The
Alignment
used inpin()
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
toLayoutAnchors/item
- Move
Alignment
toAnchorCollectionEdges/Alignment
- Fix typos
Align 2.4.1
- Fix typo in
Alignment
Align 2.4.0
- Add Cheat Sheet
- Remove
anchors.margins
andanchors.safeArea
APIs - Documentation improvements
Align 2.3
This release focuses on filling the remaining gaps in the API.
Constraints
type now conforms toCollection
protocol (backed byArray
)- Add
Constraints
activate()
anddeactivate()
methods - Add
clamp(to limit: ClosedRange<CGFloat>)
API for dimension anchors - Add default
insets
argument forAnchorCollectionEdges
equal
method - Replace the target parameter of
AnchorCollectionEdges
equal
method withLayoutItem
- Add
AnchorCollectionEdges
variant that works withCGFloat
- Add
AnchorCollectionEdges
lessThatOrEqual()
method - Fix
AnchorCollectionCenter
lessThatOrEqual()
method - Replace the target parameter of
AnchorCollectionCenter
method withLayoutItem
- Performance optimizations
Align 2.2.1
- Add a missing version of
pin()
that works withCGFloat
as insets
Align 2.2
Align 2.1
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
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 toConstraints
type to allow access to all of the constraints created using it - Add
activate
parameter toConstraints
initiliazer to optionally disable automatic activation of constraints - Deprecated
func edges(_ edges: LayoutEdge...)
, usepin(axis:)
insteads pin()
methods now use.leading
and.trailing
anchors intead of absolute.left
and.right
anchors. To switch to absolute anchors, useabsolute()
:view.anchors.edges.absolute()
- Remove
addSubview
family of APIs - Migrate to Swift 5.1
- Increase minimum required platform versions