Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 303
Cesare Avatar asked Nov 09 '22 20:11

Cesare


1 Answers

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.

like image 71
mc01 Avatar answered Nov 14 '22 23:11

mc01