Spatial
Spatial copied to clipboard
Hasle-free AutoLayout (MacOS / iOS)
Alternatives: Inara, Space, Dimension, Scape, SnapSpace, GeoFit, Cube, Qube, PolySpace, ubixi Or SpatialLib for now?
https://sintraworks.github.io/swift/autolayout/2017/12/27/autolayout-dsl.html https://chris.eidhof.nl/post/micro-autolayout-dsl/ https://sintraworks.github.io/swift/autolayout/2018/01/06/autolayout-dsl-v2.html
https://github.com/nguyentruongky/knConstraints
https://gist.github.com/V8tr/3d28b3468bb60b02c5134d8d6ad78c43
https://github.com/flowtoolz/GetLaid/blob/master/Documentation/comparison_to_alternatives.md
NSLayout constraint and tuple
⚠️️ err sice not available ⚠️️
NSLayoutConstraint.Axis = .horizontal etc
but if you use applyAnchorAndSize, lib does not complain about anchor not being set. Investigate!
for now its possible to do: ```swift let yAnchors = Constraint.distribute(vertically: views, spacing: 24, offset: .init(x: 24, y: 24)) let xAnchors = views.map { Constraint.anchor($0, to: self, align: .centerX, alignTo:...