Skip to content

iOS components Forms

StanceFormField

Stable

Wires a visible label, helper text and an announced error message to a single control.

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

Preview

Rendered by the SwiftUI library, not drawn by hand.

StanceFormField on iOS and iPadOSStanceFormField on iOS and iPadOSStanceFormField on iOS and iPadOS
StanceFormField, Light appearance
Light
StanceFormField, Dark appearance
Dark
StanceFormField, High contrast appearance
High contrast

Usage

swift
StanceFormField("Plan", helper: "Billed monthly") { Text("Team") }

Accessibility

  • Label becomes the control’s accessibility label
  • Errors are announced when they appear

On other platforms