Skip to content

iOS components Forms

StanceTextField

Stable

A labelled single-line text field with helper text, error state, required marker and leading icon.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onTextField
  • Kindview

Preview

Rendered by the SwiftUI library, not drawn by hand.

StanceTextField on iOS and iPadOSStanceTextField on iOS and iPadOSStanceTextField on iOS and iPadOS
StanceTextField, Light appearance
Light
StanceTextField, Dark appearance
Dark
StanceTextField, High contrast appearance
High contrast

Usage

swift
StanceTextField("Template name", text: $text, helper: "Visible to your organisation", isRequired: true)

Accessibility

  • Visible label matches the accessibility label for Voice Control
  • Error replaces the helper in the hint

On other platforms