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

# init(_:size:)

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

## Declaration

```swift
init(_ position: CGPoint? = nil, size: CGSize? = nil)
```

## Discussion

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