---
title: maxWidth
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstablecolumn/maxwidth
---

# maxWidth

The table column’s maximum width, in points.

## Declaration

```swift
var maxWidth: CGFloat { get set }
```

## Discussion

Discussion The default value of this property is MAXFLOAT. The table column width can’t be greater than the value of this property, whether the column is resized by the user or programmatically. If the table column’s current width is greater than the value of this property, the width is set to the value of this property.

## See Also

### Controlling Size

- [width](appkit/nstablecolumn/width.md)
- [minWidth](appkit/nstablecolumn/minwidth.md)
- [resizingMask](appkit/nstablecolumn/resizingmask.md)
- [sizeToFit()](appkit/nstablecolumn/sizetofit().md)
