Contents

valueCellConfiguration

Creates the default configuration you use to style a cell that’s in a list and contains side-by-side value text.

Declaration

+ (instancetype) valueCellConfiguration;

Return Value

The default configuration for a cell that’s in a list and contains side-by-side value text.

Discussion

Create this configuration to update the content and styling of a cell in a list. When you apply this configuration to a cell, the cell displays one primary label and one value label next to the main label in the trailing direction. Both labels resize automatically based on the length of the text you provide and the device’s Dynamic Type and accessibility settings.

For an appearance consistent with system defaults, display your cell in a table view or collection view list that you configure with one of the following enumeration cases:

Configure the background of your cell using one of the UIBackgroundConfiguration options below. Match the background of your cell to the corresponding table view or collection view styles as follows:

Background configuration option

Matching table view or collection view styles

Listplaincellconfiguration

Plain, Uicollectionlayoutlistappearanceplain

Listgroupedcellconfiguration

Grouped, Insetgrouped, Uicollectionlayoutlistappearancegrouped, Uicollectionlayoutlistappearanceinsetgrouped

See Also

Creating default cell configurations