Instance Method

accessibility(label:)

Adds a label to the view that describes its contents.

Declaration

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

See Also

Customizing Accessibility Labels of a View

Creating Accessible Views

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

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

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

Accessibility Modifier Types

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