---
title: wrappedValue
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/binding/wrappedvalue
---

# wrappedValue

The underlying value referenced by the binding variable.

## Declaration

```swift
var wrappedValue: Value { get nonmutating set }
```

## Discussion

Discussion This property provides primary access to the value’s data. However, you don’t access wrappedValue directly. Instead, you use the property variable created with the Binding attribute. In the following code example, the binding variable isPlaying returns the value of wrappedValue: struct PlayButton: View {     @Binding var isPlaying: Bool

var body: some View {         Button(isPlaying ? "Pause" : "Play") {             isPlaying.toggle()         }     } } When a mutable binding value changes, the new value is immediately available. However, updates to a view displaying the value happens asynchronously, so the view may not show the change immediately.

## See Also

### Getting the value

- [projectedValue](swiftui/binding/projectedvalue.md)
- [subscript(dynamicMember:)](swiftui/binding/subscript(dynamicmember:).md)
