Contents

capitalizationContext

The capitalization context to use when formatting the relative dates.

Declaration

var capitalizationContext: FormatStyleCapitalizationContext

Discussion

Setting the capitalization context to beginningOfSentence sets the first word of the relative date string to upper-case. A capitalization context set to middleOfSentence keeps all words in the string lower-cased.

If you set this property to nil, the format style resets to using unknown.

See Also

Modifying a Relative Date Format Style