Releases: freshOS/Stevia
Releases · freshOS/Stevia
3.1.2
Single Element Equations + less/Greater equations
Equations, Side Alignments & Percentage-based layouts
Equations Support
addConstraint(item: button,
attribute: .centerY,
toItem: avatar,
attribute: .bottom,
constant: -4)
Becomes
button.CenterY == avatar.Bottom - 4
Examples
label.Width == button.Width * 3
label.Height == (button.Width / 7) + 3
button.Left == image.Right - 20
Side Alignments
addConstraint(item: label, attribute: .top, toItem: avatar)
Becomes
alignTops(label, avatar)
Examples
alignTops(label, avatar, square)
alignBottoms(v1, v2, v3, v4)
alignLefts(button, image)
alignRights(v1, v2)
Percentage-Based Layout
addConstraint(item: label, attribute: .top, toItem: superview, attribute: .bottom, constant: 0.05)
Becomes
label.top(5%)
Examples
label.top(5%)
view.size(30%)
view.width(50%)
label.Top == 5 % Top
Prebuilt with Swift 3.0.2
Prebuilt with swift 3.0.2
3.0.1
Swift 3 support
Swift 3 support is here!
Be aware this is the first version so make sure to check your layout thoroughly and report any issue that might pop.