<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents11IntentModesV14ForegroundModeV"
  },
  "title" : "IntentModes.ForegroundMode"
}
-->

# IntentModes.ForegroundMode

A type that defines the available foreground behaviors for an app intent.

```
struct ForegroundMode
```

## Overview

Use this type to specify the foreground behaviors you want to apply to your app intent.
Each option specifies when and how the system brings your app to the foreground to
perform the app intent’s action.

## Topics

### Type Properties

[`static var deferred: IntentModes.ForegroundMode`](/documentation/AppIntents/IntentModes/ForegroundMode/deferred)

An option to bring the app to the foreground while running the intent’s action or
shortly before the action completes.

[`static var dynamic: IntentModes.ForegroundMode`](/documentation/AppIntents/IntentModes/ForegroundMode/dynamic)

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

[`static var immediate: IntentModes.ForegroundMode`](/documentation/AppIntents/IntentModes/ForegroundMode/immediate)

An option to bring the app to the foreground immediately after the system resolves the intent’s parameters.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)