Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wh1pch81n/200119e6c0cef6978f9b050457dcf3b0 to your computer and use it in GitHub Desktop.
Save wh1pch81n/200119e6c0cef6978f9b050457dcf3b0 to your computer and use it in GitHub Desktop.
// DHConstraintBuilder
//1
view_cb.addConstraints(() |-^ greenView_cb ^-^ 15.5 ^-^ redView_cb ^-| ()).H
//2
view_cb.addConstraints(() |-^ blueView_cb ^-| ()).H
//3
view_cb.addConstraints(() |-^ greenView_cb ^-^ blueView_cb ^-| ()).V
//4
view_cb.addConstraints(() |-^ redView_cb ^-^ blueView_cb).V
//5
view_cb.addConstraints(greenView_cb.lengthEqual(to: redView_cb)).H
//6
view_cb.addConstraints(greenView_cb.lengthEqual(to: blueView_cb)).V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment