<!--
{
  "availability" : [
    "iOS: 13.0.0 - 26.0.0",
    "iPadOS: 13.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWindowSceneDelegate/windowScene(_:didUpdate:interfaceOrientation:traitCollection:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIWindowSceneDelegate(im)windowScene:didUpdateCoordinateSpace:interfaceOrientation:traitCollection:"
  },
  "title" : "windowScene(_:didUpdate:interfaceOrientation:traitCollection:)"
}
-->

# windowScene(_:didUpdate:interfaceOrientation:traitCollection:)

Notifies you when the size, orientation, or traits of a scene change.

```
optional func windowScene(_ windowScene: UIWindowScene, didUpdate previousCoordinateSpace: any UICoordinateSpace, interfaceOrientation previousInterfaceOrientation: UIInterfaceOrientation, traitCollection previousTraitCollection: UITraitCollection)
```

## Parameters

`windowScene`

The window scene object whose environment changed.

`previousCoordinateSpace`

The previous coordinate space of the scene. Get the current coordinate space from the [`coordinateSpace`](/documentation/UIKit/UIWindowScene/coordinateSpace) property of the `windowScene` object.

`previousInterfaceOrientation`

The previous interface orientation for your content. Get the current interface orientation from the [`interfaceOrientation`](/documentation/UIKit/UIWindowScene/interfaceOrientation) property of the `windowScene` object.

`previousTraitCollection`

The previous traits for the window. Get the current window traits from the [`traitCollection`](/documentation/UIKit/UIWindowScene/traitCollection) property of the `windowScene` object.

## Discussion

The window scene environment typically changes in response to user actions. For example, the interface orientation changes in response to device orientation changes or screen mode in response to moving to another screen. Similarly, the user may resize scenes on iPad, which causes UIKit to report a change to the scene’s coordinate space. Use these changes to make any needed changes to your scene’s content or interface.

## See Also

[Presenting content on a connected display](/documentation/UIKit/presenting-content-on-a-connected-display)

Fill connected displays with additional content from your app.



---

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)