Skip to content

Instantly share code, notes, and snippets.

@pedrommcarrasco
Created January 6, 2019 19:39
Show Gist options
  • Save pedrommcarrasco/abc6a3baf8c007bd207e5ed9f447334c to your computer and use it in GitHub Desktop.
Save pedrommcarrasco/abc6a3baf8c007bd207e5ed9f447334c to your computer and use it in GitHub Desktop.
I Want To Be Discardable - Real World Example
let a = UIView()
let b = UIView()
a.topAnchor.constraint(equalTo: b.topAnchor)
let aBottom = a.bottomAnchor.constraint(equalTo: b.bottomAnchor)
aBottom.priority = .defaultHigh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment