sizeclass
Size class is a design concept used in user interface development to categorize screen space into a small set of buckets so UIs can adapt across devices and orientations. In iOS, a size class is defined along two axes: horizontal and vertical. Each axis can be compact or regular, forming a size-class pair such as (compact, regular) or (regular, regular). There is also an unspecified or any category used in certain tools to indicate applicability across multiple classes.
Developers access size class information through trait collections as part of a view's environment. At design
Common usage patterns include simplifying navigation for compact width (for example, stacking content or collapsing sidebars)
Limitations: size classes are coarse, and newer layouts may require more granular adjustments. They remain a