Sample Code

Creating Accessible Views

Make your app accessible to everyone by applying accessibility modifiers to your SwiftUI views.

Download

Overview

See Also

Customizing Accessibility Labels of a View

func accessibility(value: Text) -> ModifiedContent<Self, AccessibilityAttachmentModifier>

Adds a textual description of the value that the view contains.

func accessibility(hidden: Bool) -> ModifiedContent<Self, AccessibilityAttachmentModifier>

Specifies whether to hide this view from system accessibility features.

Accessibility Modifier Types

A set of types used to improve a view’s comprehensibility, interactivity, and navigability.