automaticDimension
automaticDimension is a sentinel value used in several UI frameworks to indicate that a given dimension should be calculated automatically by the layout engine using Auto Layout constraints rather than specified explicitly by the developer. In Apple's UIKit, the term most commonly appears in relation to table views and, since iOS 10, to collection views.
Table views: To enable dynamic row heights, set the table view's rowHeight to automaticDimension (or UITableView.automaticDimension
Collection views: Self-sizing cells are supported by configuring the collection view's layout so that item sizes
History: In Objective-C, UITableViewAutomaticDimension served the role; Swift uses UITableView.automaticDimension.
Limitations: Works best with well-defined Auto Layout constraints; if constraints are ambiguous or incomplete, heights may
See also: Auto Layout; Self-sizing cells; UITableViewAutomaticDimension; UITableView.automaticDimension.