Re: Thoughts on autolayout
Re: Thoughts on autolayout
- Subject: Re: Thoughts on autolayout
- From: Roland King <email@hidden>
- Date: Fri, 22 Apr 2016 09:49:33 +0800
> On 22 Apr 2016, at 03:34, Hunter Hillegas <email@hidden> wrote:
>
> Nope, I’m a huge fan, especially with newer tools like UIStackView and the layout guide stuff.
>
>> On Apr 21, 2016, at 12:19 PM, Charles Srstka <email@hidden> wrote:
>>
>> Am I the only one who likes autolayout?
>
>
I also like autolayout. Always loved the theory and the layout engine, thinking about UI in terms of constraints I thinks is very natural.
The initial implementation in IB was atrocious because it tried to guess what you wanted to do and keep the layout satisfied at all times, which meant a 1px move destroyed 10 minutes of work. The current implementation strikes the right balance for me, add the stuff and constraints you want, look at any warnings you get, fix them. You can exercise the interface quickly in the preview pane, you can leave constraints off bits you don’t care about yet and come back to them later. The trait-specific bits, where you can install constraints or even whole views automatically as traits change has let me remove chunks of code messing with constraints in code, now I can just bang through a few iterations of a view design in one place in IB in a few minutes, ‘test’ it on various devices in all orientations without writing a line of code.
For me AL in the current iteration in IB is a huge time saver and I wouldn’t want to go back.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden