<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macOS: 15.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WindowPlacementContext",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI22WindowPlacementContextV"
  },
  "title" : "WindowPlacementContext"
}
-->

# WindowPlacementContext

A type which represents contextual information used for sizing and
positioning windows.

```
struct WindowPlacementContext
```

## Overview

The placement context provides information to be used when providing a new
placement via the closure provided to the `defaultWindowPlacement(_:)`
modifier.

## Topics

### Instance Properties

[`var defaultDisplay: DisplayProxy`](/documentation/SwiftUI/WindowPlacementContext/defaultDisplay)

The display on which new windows will be presented by default.

[`var windows: [WindowProxy]`](/documentation/SwiftUI/WindowPlacementContext/windows)

The list of current active scenes

---

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)