Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. // pinning view1 below of view2
  2. view1.autoPinEdge(.Top, toEdge: .Bottom, ofView: view2)
  3.  
  4. // centering a view in it's superview in one line!
  5. logoImageView.autoCenterInSuperview()
  6.  
  7. // 4 constraints created & activated in one line!
  8. textContentView.autoPinEdgesToSuperviewEdgesWithInsets(UIEdgeInsets(top: 20.0, left: 5.0, bottom: 10.0, right: 5.0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement