Contents

backgroundView

The view that displays behind the cell’s other content.

Declaration

var backgroundView: UIView? { get set }

Discussion

Use this property to assign a custom background view to the cell. The background view appears behind the content view and its frame automatically adjusts so that it fills the bounds of the cell.

A background configuration is mutually exclusive with background views, so you must use one approach or the other. Setting a non-nil value for this property resets backgroundConfiguration to nil.

See Also

Configuring the background