---
title: ScenePhase.active
framework: swiftui
role: symbol
role_heading: Case
path: swiftui/scenephase/active
---

# ScenePhase.active

The scene is in the foreground and interactive.

## Declaration

```swift
case active
```

## Discussion

Discussion An active scene isn’t necessarily front-most. For example, a macOS window might be active even if it doesn’t currently have focus. Nevertheless, all scenes should operate normally in this phase. An app or custom scene in this phase contains at least one active scene instance.

## See Also

### Getting scene phases

- [ScenePhase.inactive](swiftui/scenephase/inactive.md)
- [ScenePhase.background](swiftui/scenephase/background.md)
