---
title: "appRefresh(_:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/backgroundtask/apprefresh(_:)"
---

# appRefresh(_:)

A task that updates your app’s state in the background for a matching identifier.

## Declaration

```swift
static func appRefresh(_ identifier: String) -> BackgroundTask<Void, Void>
```

## Return Value

Return Value A background task that you can handle with your app or extension.
