Skip to content

Instantly share code, notes, and snippets.

@adek05
Created January 30, 2015 05:11
Show Gist options
  • Save adek05/2c20b5110469c276e487 to your computer and use it in GitHub Desktop.
Save adek05/2c20b5110469c276e487 to your computer and use it in GitHub Desktop.
var outerView: UIView = UIView()
var innerView: UIView = UIView()
outerView.addSubview(innerView)
layout(outerView, innerView) { outerView, innterView in
outerView.centerX == innerView.centerX
outerView.centerY == innerView.centerY
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment