Skip to main content
.accessibilityLabel(label: string)
label
string
required
The text that VoiceOver reads when the user focuses on the component.

Support

Usage

Label an icon button

Button("", () => share())
    .accessibilityLabel("Share")

Label an image

Image({ url: "profile.jpg" })
    .resizable()
    .frame({ width: 48, height: 48 })
    .clipShape(Circle())
    .accessibilityLabel("Profile photo")

See Also