contentConfiguration
The current content configuration of the cell.
Declaration
@MainActor @preconcurrency var contentConfiguration: (any UIContentConfiguration)? { get set }Discussion
Using a content configuration, you can set the cell’s content and styling for a variety of different cell states. You can get the default configuration using defaultContentConfiguration(), assign your content to the configuration, customize any other properties, and assign it to the view as the current contentConfiguration.
Setting a content configuration replaces the existing contentView of the cell with a new content view instance from the configuration, or directly applies the configuration to the existing content view if the configuration is compatible with the existing content view type.
The default value is nil. After you set a content configuration to this property, setting this property back to nil replaces the current content view with a new, empty content view.