Skip to content

Instantly share code, notes, and snippets.

View nakiostudio's full-sized avatar
⚛️

Carlos Vidal nakiostudio

⚛️
View GitHub Profile
button.easy.layout(
Center(0.0),
Height(50.0),
Width(*0.5).like(header)
)
button.easy.layout(
Center(0.0),
Width(160.0),
Height(0.0).like(header)
)
button.easy.layout(
Width(160.0),
Height(50.0),
CenterX(0.0),
Top(20.0).to(header, .top)
)
button.easy.layout(
Width(160.0),
Height(50.0),
CenterX(0.0),
Top(20.0).to(header)
)
button.easy.clear()
button.easy.layout(Width(200.0))
button.layoutIfNeeded()
button.easy.layout(Bottom(20.0))
button.superview?.layoutIfNeeded()
button.easy.layout(Bottom(20.0))
button.easy.layout(
Bottom(20.0)
)
button.easy.layout(
Center(0.0),
Size(CGSize(width: 160.0, height: 50.0))
)