:leaves: Concise Autolayout code
⚠️ Warning, this release adds support for RTL languages which represents quite a big change. If you use this version, make sure to check you app for any layout issue and please report them :)
|-20-myview
means myView
is pinned to the right in a right-to-left language environment.leading
trailing
support in the chainable api.You can force RTL rendering by using view.semanticContentAttribute = .forceRightToLeft
in your view.
Updates to swift 5 🚀
fillContainer
now returns self to make it chainable (courtesy of @n13 )
>=
broken operatorFixes view.bottom/top/right/leftConstraint
possibly returning wrong constraint if the one you want is not there yet. (looking for constraint in the view itself after looking for it in the superview)
The fix makes sure it only looks for the constraint in the view itself for width
and height
constraints, that corresponds to constraints added via width/heightAnchors api.
userAddedConstraints
doesn't return layout margins. Fixes https://github.com/freshOS/Stevia/pull/104 Kudos @mpsnp 👏align(lastBaselines: label, label2, label3)
label.FirstBaseline == label.LastBaseline