<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIScene/ActivationState-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UISceneActivationState"
  },
  "title" : "UIScene.ActivationState"
}
-->

# UIScene.ActivationState

Constants that indicate the foreground or background execution state of your app.

```
enum ActivationState
```

## Topics

### Scene States

[`UISceneActivationStateUnattached`](/documentation/UIKit/UIScene/ActivationState-swift.enum/unattached)

A state that indicates that the scene is not currently connected to your app.

[`UISceneActivationStateForegroundInactive`](/documentation/UIKit/UIScene/ActivationState-swift.enum/foregroundInactive)

A state that indicates that the scene is running in the foreground but is not receiving events.

[`UISceneActivationStateForegroundActive`](/documentation/UIKit/UIScene/ActivationState-swift.enum/foregroundActive)

A state that indicates that the scene is running in the foreground and is currently receiving events.

[`UISceneActivationStateBackground`](/documentation/UIKit/UIScene/ActivationState-swift.enum/background)

A state that indicates that the scene is running in the background and is not onscreen.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)