Skip to content

Size Classes

Question

Size classes

Short interview answer

Size classes describe broad horizontal and vertical space categories. Interface Builder and UIKit use them to apply layouts and constraints appropriate to the current environment.

Detailed answer

Start with a general Any-Any layout, then add more-specific variants only where the design needs them. Rotation, split view, and device changes can alter the active size class, so verify every supported combination has a satisfiable layout.

Sources