Instance Property インスタンスプロパティ

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