Skip to content

iOS components Actions

StanceButtonStyle

Stable

The Stance button style for any Button, Menu label or NavigationLink: .buttonStyle(.stance(.primary)).

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onButtonStyle
  • Kindstyle

Preview

Rendered by the SwiftUI library, not drawn by hand.

StanceButtonStyle on iOS and iPadOSStanceButtonStyle on iOS and iPadOSStanceButtonStyle on iOS and iPadOS
StanceButtonStyle, Light appearance
Light
StanceButtonStyle, Dark appearance
Dark
StanceButtonStyle, High contrast appearance
High contrast

Usage

swift
Button("Save changes") {}.buttonStyle(.stance(.outline, fullWidth: true))

Accessibility

  • Press feedback respects Reduce Motion

On other platforms