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

# listType

The type of the list.

## Declaration

```swift
var listType: ListFormatStyle<Style, Base>.ListType
```

## Discussion

Discussion The list type determines the semantics used in the return string. For example, for en_US: ["One", "Two", "Three"].formatted(.list(type: .and)) // “One, Two, and Three”

["One", "Two", "Three"].formatted(.list(type: .or)) // “One, Two, or Three”  The default value is ListFormatStyle.ListType.and.

## See Also

### Modifying a list format style

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