Skip to main content
.accessibilityValue(value: string)
value
string
required
The current value of the component, read by VoiceOver after the label. For example, “50 percent” for a progress indicator.

Support

Usage

Set a value for a progress indicator

ProgressView({ value: 0.75 })
    .accessibilityLabel("Download progress")
    .accessibilityValue("75 percent")

Set a value for a custom rating display

HStack(stars)
    .accessibilityLabel("Rating")
    .accessibilityValue("4 out of 5 stars")

See Also