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

# update()

Updates the fetched results.

## Declaration

```swift
@MainActor @preconcurrency func update()
```

## Discussion

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

## See Also

### Getting the fetched results

- [wrappedValue](swiftui/sectionedfetchrequest/wrappedvalue.md)
