---
title: autorecalculatesCellSize
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmatrix/autorecalculatescellsize
---

# autorecalculatesCellSize

A Boolean that indicates whether the matrix auto-recalculates its cell size.

## Declaration

```swift
var autorecalculatesCellSize: Bool { get set }
```

## Discussion

Discussion When the value of this property is true, auto-recalculation occurs. The matrix will adjust its cellSize to accommodate its largest cell. Changing the cellSize does not directly affect the frame of the matrix; however it does affect the intrinsic content size, which may cause the receiver to resize under Auto Layout. When using Auto Layout, you typically want this to be set to true. The default value of this property is false.
