<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WindowPlacement/init(_:size:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15WindowPlacementV_4sizeACSo7CGPointVSg_So6CGSizeVSgtcfc::OverloadGroup"
  },
  "title" : "init(_:size:)"
}
-->

# init(_:size:)

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

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

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)