---
title: width
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/listformatstyle/width-swift.property
---

# width

The size of the list.

## Declaration

```swift
var width: ListFormatStyle<Style, Base>.Width
```

## Discussion

Discussion 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.

## See Also

### Modifying a list format style

- [ListFormatStyle.Width](foundation/listformatstyle/width-swift.enum.md)
- [listType](foundation/listformatstyle/listtype-swift.property.md)
- [ListFormatStyle.ListType](foundation/listformatstyle/listtype-swift.enum.md)
- [locale](foundation/listformatstyle/locale.md)
- [locale(_:)](foundation/listformatstyle/locale(_:).md)
