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

# init(_:size3D:)

Creates a new window placement with an optional position and 3D size. Depth is ignored on scenes that don’t support it.

## Declaration

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

## Discussion

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