---
title: windowScene
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiwindow/windowscene
---

# windowScene

The scene containing the window.

## Declaration

```swift
weak var windowScene: UIWindowScene? { get set }
```

## Mentioned in

Transitioning to the UIKit scene-based life cycle

## Discussion

Discussion Changing the value of this property moves the window to the newly specified scene. Setting the property to nil removes the window from its current scene.

## See Also

### Getting related objects

- [avDisplayManager](uikit/uiwindow/avdisplaymanager.md)
