---
title: width
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/proposedviewsize/width
---

# width

The proposed horizontal size measured in points.

## Declaration

```swift
var width: CGFloat?
```

## Discussion

Discussion A value of nil represents an unspecified width proposal, which a view interprets to mean that it should use its ideal width.

## See Also

### Getting the proposal’s dimensions

- [height](swiftui/proposedviewsize/height.md)
