---
title: allowedUnits
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/bytecountformatstyle/allowedunits
---

# allowedUnits

The units the format style can use to express the byte count.

## Declaration

```swift
var allowedUnits: ByteCountFormatStyle.Units { get set }
```

## See Also

### Accessing style properties

- [ByteCountFormatStyle.Units](foundation/bytecountformatstyle/units.md)
- [spellsOutZero](foundation/bytecountformatstyle/spellsoutzero.md)
- [includesActualByteCount](foundation/bytecountformatstyle/includesactualbytecount.md)
- [locale](foundation/bytecountformatstyle/locale.md)
