<!--
{
  "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.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIScene(py)activationState"
  },
  "title" : "activationState"
}
-->

# activationState

The current execution state of the scene.

```
var activationState: UIScene.ActivationState { get }
```

## Discussion

When it is running, a scene is usually in the [`UIScene.ActivationState.foregroundActive`](/documentation/UIKit/UIScene/ActivationState-swift.enum/foregroundActive) or [`UIScene.ActivationState.background`](/documentation/UIKit/UIScene/ActivationState-swift.enum/background) state. A state may also enter other states for a short time as part of a transition.

---

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)