---
title: automaticDimension
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uitableview/automaticdimension
---

# automaticDimension

A constant representing the default value for a given dimension.

## Declaration

```swift
class let automaticDimension: CGFloat
```

## Discussion

Discussion Return this value from your table view’s delegate methods when you want the table view to choose a default value for the given dimension. For example, if you return this constant from tableView(_:heightForHeaderInSection:) or tableView(_:heightForFooterInSection:), the table view uses a height that fits the value returned from tableView(_:titleForHeaderInSection:) or tableView(_:titleForFooterInSection:), if the title is not nil.

## See Also

### Providing header, footer, and row heights

- [tableView(_:heightForRowAt:)](uikit/uitableviewdelegate/tableview(_:heightforrowat:).md)
- [tableView(_:heightForHeaderInSection:)](uikit/uitableviewdelegate/tableview(_:heightforheaderinsection:).md)
- [tableView(_:heightForFooterInSection:)](uikit/uitableviewdelegate/tableview(_:heightforfooterinsection:).md)
