Skip to content

iOS components Layout

StanceContainer

Stable

Constrains content to a readable width with page gutters and centres it on iPad.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onA custom Stance component
  • Kindview

Preview

Rendered by the SwiftUI library, not drawn by hand.

StanceContainer on iOS and iPadOSStanceContainer on iOS and iPadOSStanceContainer on iOS and iPadOS
StanceContainer, Light appearance
Light
StanceContainer, Dark appearance
Dark
StanceContainer, High contrast appearance
High contrast

Usage

swift
StanceContainer { Text("Readable") }

Accessibility

  • Keeps line length readable at every size class

On other platforms