What's the difference between "Regular Height" and "Any Height" in Compact Width in Size Classes?
Asked Answered
G

1

6

In Compact Width, NSLayoutConstraints declared in Any Height have the the same effect of the ones applied to the Regular Height class.

img1

What are the differences between those classes?

Gayden answered 7/1, 2015 at 16:23 Comment(4)
I think maybe it's just a semantic distinction. If you create a Compact Height layout for landscape iPhone, then you can't really call the Portrait one "Any" anymore, can you? Also, there are use cases for Compact/Regular width, so having Compact/Regular height as a pairing just keeps the system balanced & consistent. Last thought - This leaves things flexible for future devices that have different form factors. The option is already there.Martimartial
Thank you so much for your help. That makes sense. Post this as an answer and I'll be happy to accept it.Gayden
@CeceXX, where did you get that (original) image? I need to print that out. Thanks!Sublunar
A two second search led me to it, sorry! mathewsanders.com/designing-adaptive-layouts-for-iphone-6-plusSublunar
M
1

I think maybe it's just a semantic distinction. If you create a Compact Height layout for landscape iPhone, then you can't really call the Portrait one "Any" anymore, can you? Also, there are use cases for Compact/Regular width, so having Compact/Regular height as a pairing just keeps the system balanced & consistent. Last thought - This leaves things flexible for future devices that have different form factors. The option is already there.

Martimartial answered 7/1, 2015 at 18:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.