---
title: "init(x:y:width:height:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/windowplacement/init(x:y:width:height:)"
---

# init(x:y:width:height:)

Creates a new window placement with an optional position and size.

## Declaration

```swift
init(x: CGFloat? = nil, y: CGFloat? = nil, width: CGFloat? = nil, height: CGFloat? = nil)
```

## Discussion

Discussion Any values not provided will use use the default values for the Scene that this placement is being applied to.
