Skip to content

Instantly share code, notes, and snippets.

Last active Dec 20, 2019
What would you like to do?
// UIViewController
let constraints = [
view.centerXAnchor.constraint(equalTo: superview.centerXAnchor),
view.centerYAnchor.constraint(equalTo: superview.centerYAnchor),
view.widthAnchor.constraint(equalTo: superview.widthAnchor)
view.heightAnchor.constraint(equalTo: superview.heightAnchor),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment