---
title: WindowLayoutRoot
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/windowlayoutroot
---

# WindowLayoutRoot

A proxy which represents the root contents of a window.

## Declaration

```swift
struct WindowLayoutRoot
```

## Overview

Overview This type acts like a proxy for the contents of the window defined by a SwiftUI Scene. The Scene.defaultWindowPlacement(_:) modifier receives an instance of this type, representing the contents of the window being created. Use this proxy to get information about the window’s contents, like it’s size.

## Topics

### Instance Methods

- [sizeThatFits(_:)](swiftui/windowlayoutroot/sizethatfits(_:).md)

## See Also

### Positioning a window

- [defaultPosition(_:)](swiftui/scene/defaultposition(_:).md)
- [WindowLevel](swiftui/windowlevel.md)
- [windowLevel(_:)](swiftui/scene/windowlevel(_:).md)
- [WindowPlacement](swiftui/windowplacement.md)
- [defaultWindowPlacement(_:)](swiftui/scene/defaultwindowplacement(_:).md)
- [windowIdealPlacement(_:)](swiftui/scene/windowidealplacement(_:).md)
- [WindowPlacementContext](swiftui/windowplacementcontext.md)
- [WindowProxy](swiftui/windowproxy.md)
- [DisplayProxy](swiftui/displayproxy.md)
