<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/IntentModes/ForegroundMode/dynamic",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents11IntentModesV14ForegroundModeV7dynamicAEvpZ"
  },
  "title" : "dynamic"
}
-->

# dynamic

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

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

## 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:)`](/documentation/AppIntents/AppIntent/needsToContinueInForegroundError(_:alwaysConfirm:)) method from your
intent’s [`perform()`](/documentation/AppIntents/AppIntent/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)