Formatter.Context
The formatting context for a formatter.
Declaration
enum ContextOverview
Use formatting contexts to specify where the result of formatting will appear, so that the formatter can provide the most appropriate result.
For example, when formatting a date or date symbol for a French locale, you want the month name to be capitalized if it appears at the beginning of the sentence (“Juin est mon mois de naissance”), but not if it appears elsewhere (“Mon mois de naissance est juin”).
If the formatting context isn’t known ahead of time, specify Formatter.Context.dynamic to have the system determine the context automatically.
Topics
Constants
Formatter.Context.unknownFormatter.Context.dynamicFormatter.Context.standaloneFormatter.Context.listItemFormatter.Context.beginningOfSentenceFormatter.Context.middleOfSentence