---
title: "width(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/tablecolumn/width(_:)"
---

# width(_:)

Creates a fixed width table column that isn’t user resizable.

## Declaration

```swift
nonisolated func width(_ width: CGFloat? = nil) -> TableColumn<RowValue, Sort, Content, Label>
```

## Parameters

- `width`: A fixed width for the resulting column. If width is nil, the resulting column has no change in sizing.

## See Also

### Setting the column width

- [width(min:ideal:max:)](swiftui/tablecolumn/width(min:ideal:max:).md)
- [width()](swiftui/tablecolumn/width().md)
