---
title: unitWidth
framework: swift
role: symbol
role_heading: Instance Property
path: swift/duration/unitsformatstyle/unitwidth-swift.property
---

# unitWidth

The width of the unit and the spacing between the value and the unit.

## Declaration

```swift
var unitWidth: Duration.UnitsFormatStyle.UnitWidth
```

## See Also

### Working with unit widths

- [Duration.UnitsFormatStyle.UnitWidth](swift/duration/unitsformatstyle/unitwidth-swift.struct.md)
