Instance Property

systemMinimumLayoutMargins

Leading and trailing insets that represent the minimum layout margins for text elements.

Declaration

@property(nonatomic, readonly) NSDirectionalEdgeInsets systemMinimumLayoutMargins;

Discussion

The 40 mm and 44 mm watches have rounded corners. As a result, the items in the status bar do not extend all the way to the edge of the screen.

The system provides the minimum layout margins to help you align your text content with the status bar. The system’s built-in containers and controls take the minimum layout margins into account automatically when laying out your interface; however, if you build a custom user interface with SpriteKit or SceneKit, you should check the contentSafeAreaInsets and systemMinimumLayoutMargins, and lay out your interface accordingly.

See Also

Respecting Safe Areas and Layout Margins

contentSafeAreaInsets

Insets that define the area in which it’s safe to display content on the screen.