Hi,

Thanks a lot - That’s what I was looking for! I added a 1:1 Aspect Ratio 
constraint to the Root StackView and it now works ok.

I have another question regarding Auto Layout and XCode.

In XCode/IB I’ve designed these views in Landscape. I started with the iPhone 
4s which is the Smallest I could find in IB and then moved on to iPhone SE, 
iPhone 7 and 7+. These all seem to work ok in Landscape in XCode, but if I 
switch to portrait it stops working.

I want the Root Stack View to be placed to the left of the Screen in Landscape 
and the Top of the Screen in Portrait. Can I do this with one set of 
constraints or is it better to have two separate View Hierarchies and switch 
between them in code?

All the Best
Dave

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to