Skip to content

iOS components Actions

StanceIconButton

Stable

An icon-only button that requires an accessibility label and keeps a 44pt touch target.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onButton
  • Kindview

Preview

Rendered by the SwiftUI library, not drawn by hand.

StanceIconButton on iOS and iPadOSStanceIconButton on iOS and iPadOSStanceIconButton on iOS and iPadOS
StanceIconButton, Light appearance
Light
StanceIconButton, Dark appearance
Dark
StanceIconButton, High contrast appearance
High contrast

Usage

swift
StanceIconButton(.pencil, label: "Edit template") {}

Accessibility

  • Label is required and used by VoiceOver and Voice Control
  • Pointer hover effect on iPad

On other platforms