Contents

automaticDimension

A constant representing the default value for a given dimension.

Declaration

class let automaticDimension: CGFloat

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