width
The size of the list.
Declaration
var width: ListFormatStyle<Style, Base>.WidthDiscussion
The width property controls the size of the list. The locale determines the formatting and abbreviation of the string for the given width.
For example, for English:
["One", "Two", "Three"].formatted(.list(type: .and, width: .standard))
// “One, Two, and Three”
["One", "Two", "Three"].formatted(.list(type: .and, width: .short))
// “One, Two, & Three”
["One", "Two", "Three"].formatted(.list(type: .and, width: .narrow))
// “One, Two, Three” The default value is ListFormatStyle.Width.standard.