In Compact Width
, NSLayoutConstraints
declared in Any Height
have the the same effect of the ones applied to the Regular Height
class.
What are the differences between those classes?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With