Skip to content

UIListContentConfiguration.subtitleCellConfiguration() static method ​

The UIListContentConfiguration.subtitleCellConfiguration() static method returns an empty content configuration in the "secondary text below the primary text" style.

Syntax ​

UIListContentConfiguration.subtitleCellConfiguration()

Parameters ​

None.

Return value ​

A new UIListContentConfiguration (verified by testing). text, secondaryText, and image are all null.

Exceptions ​

None.

Examples ​

js
const content = UIListContentConfiguration.subtitleCellConfiguration();
content.text = 'Title';
content.secondaryText = 'Details';

Effect: produces content in the "secondary text below the primary text" style, which appears once written to a cell's contentConfiguration. How the style looks on screen is not verified in the simulator; its meaning comes from Apple's documentation.

Corresponding iOS API ​

+[UIListContentConfiguration subtitleCellConfiguration].

See also ​