Skip content - SwiftUI

In SwiftUI, skipping content is mostly relevant to VoiceOver users. VoiceOver includes a rotor which allows users to jump to the following content types:

  • Headers
  • Links
  • Form Controls
  • Containers
  • Text
    • Lines
    • Characters
    • Words

Jumping to headers and links is used most often.

Provide appropriate accessibility markup to your content by using accessibilityAddTraits view modifier.

Text("Appt")
    .font(.largeTitle)
    .accessibilityAddTraits(.isHeader)

Button("Visit Appt") {
    // Open URL
}
.accessibilityAddTraits(.isLink)