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

# init(_:)

Creates a new window placement with an optional position.

## Declaration

```swift
init(_ position: WindowPlacement.Position? = nil)
```

## Discussion

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