Skip to content

iOS components Typography

stanceText(_:)

Stable

Modifier that applies a semantic Stance text style which scales with Dynamic Type and Bold Text.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onScaledMetric
  • Kindmodifier

Preview

Rendered by the SwiftUI library, not drawn by hand.

stanceText(_:) on iOS and iPadOSstanceText(_:) on iOS and iPadOSstanceText(_:) on iOS and iPadOS
stanceText(_:), Light appearance
Light
stanceText(_:), Dark appearance
Dark
stanceText(_:), High contrast appearance
High contrast

Usage

swift
Text("Contracts, signed in minutes").stanceText(.heading)

Accessibility

  • Scales through the largest accessibility sizes
  • Never below 12pt at the default size

On other platforms