A text view with a modified font that uses fixed-width numeric characters, while leaving other characters proportionally spaced.
Discussion
議論
This modifier only affects numeric characters, and leaves all other characters unchanged.
The following example shows the effect of monospacedDigit() on a text view. It arranges two text views in a VStack, each displaying a formatted date that contains many instances of the character 1. The second text view uses the monospacedDigit(). Because 1 is usually a narrow character in proportional fonts, applying the modifier widens all of the 1s, and the text view as a whole. The non-digit characters in the text view remain unaffected.