<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ProposedViewSize/init(width:height:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16ProposedViewSizeV5width6heightAC14CoreFoundation7CGFloatVSg_AItcfc"
  },
  "title" : "init(width:height:)"
}
-->

# init(width:height:)

Creates a new proposed size using the specified width and height.

```
init(width: CGFloat?, height: CGFloat?)
```

## Parameters

`width`

A proposed width in points. Use a value of `nil` to indicate
that the width is unspecified for this proposal.

`height`

A proposed height in points. Use a value of `nil` to
indicate that the height is unspecified for this proposal.

---

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)