<!--
{
  "availability" : [
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceObject/setAccessibilityValue(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceObject(im)setAccessibilityValue:"
  },
  "title" : "setAccessibilityValue(_:)"
}
-->

# setAccessibilityValue(_:)

Sets the value of the accessibility element.

```
func setAccessibilityValue(_ accessibilityValue: String?)
```

## Parameters

`accessibilityValue`

The new value for the accessibility element.

## Discussion

When an object has a static label and a dynamic value, set this property to a string that describes the value. For example, a switch object can have a label describing the meaning of the switch, but the value is either On or Off.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)