Releases: kean/Align
Releases · kean/Align
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
Align 1.2.1
- Add support for Swift Package Manager 5.0
Align 1.2
Align 1.1
Align 1.0
Align 0.6
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:...)
andmatch(:...)
methods which hadoffset
andmultiplier
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
- Improve documentation
- Improve some minor implementation details
- Update project to Xcode 9.3 recommended settings
Align 0.5
Align 0.4
pinToSuperviewMargins
methods now use margin attributes (e.g..topMargin
) and notlayoutMarginsGuide
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 usesafeAreaLayoutGuide
on iOS 11 and fall back totopLayoutGuide
andbottomLayoutGuide
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)