Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // pinning view1 below of view2
- view1.autoPinEdge(.Top, toEdge: .Bottom, ofView: view2)
- // centering a view in it's superview in one line!
- logoImageView.autoCenterInSuperview()
- // 4 constraints created & activated in one line!
- 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