Tuesday, February 23, 2016

Pain Free Constraints With Layout Anchors

Keith Harrison:

A frequent complaint with Auto Layout is how verbose and unreadable the syntax is for programmatically creating constraints. Fortunately iOS 9 has done a lot to improve things. Stack Views have removed the need for us to create many of the constraints in typical layouts. Overlooked by comparison, but just as useful, was the introduction of layout anchors and layout guides. From the Apple Auto Layout Guide […] I will look at layout guides another time but for now here are my notes on using layout anchors to create constraints in code without the pain.

Comments RSS · Twitter

Leave a Comment