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

# init(_:width:height:)

Creates a new window placement with a display-relative position, with an optional width and height.

## Declaration

```swift
init(_ position: UnitPoint, 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.
