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?
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.
© 2022 - 2024 — McMap. All rights reserved.