Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muukii/69259c97d2b2b2b6276ec311937d8708 to your computer and use it in GitHub Desktop.
Save muukii/69259c97d2b2b2b6276ec311937d8708 to your computer and use it in GitHub Desktop.
let backgroundView = UIView.mock(backgroundColor: .neon(.violet))
let box1 = UIView.mock(backgroundColor: .neon(.red), preferredSize: .largeSquare)
let box2 = UIView.mock(backgroundColor: .neon(.yellow), preferredSize: .largeSquare)
view.mondrian.buildSubviews {
HStackBlock(spacing: 10) {
box1
box2
}
.padding(10)
.background(backgroundView)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment