textLabel
A primary text label for the view.
Declaration
var textLabel: UILabel? { get }Discussion
Accessing the value in this property causes the view to create a default label for displaying a detail text string. If you are managing the content of the view yourself by adding subviews to the contentView property, you should not access this property.
The label sizes to fit the content view area in the best way possible according to the size of the string. Its size also adjusts depending on whether there is a detail text label present.
This property is mutually exclusive with a content configuration. Setting a non-nil value for contentConfiguration resets this property to nil.