---
title: dynamic
framework: appintents
role: symbol
role_heading: Type Property
path: appintents/intentmodes/foregroundmode/dynamic
---

# dynamic

An option to bring the app to the foreground if conditions permit it.

## Declaration

```swift
static var dynamic: IntentModes.ForegroundMode { get }
```

## Discussion

Discussion This option allows you to choose whether to transition an action from the background to the foreground. If your app is running in the background, call the AppIntent/continueInForeground(_:alwaysConfirm:)  or needsToContinueInForegroundError(_:alwaysConfirm:) method from your intent’s perform() method to bring it to the foreground. If you don’t call one of these methods, the app continues running the app intent’s code in the background.
