---
title: update()
framework: swiftui
role: symbol
role_heading: Instance Method
path: swiftui/dynamicproperty/update()
---

# update()

Updates the underlying value of the stored value.

## Declaration

```swift
mutating func update()
```

## Discussion

Discussion SwiftUI calls this function before rendering a view’s body to ensure the view has the most recent value.
