---
title: ByteCountFormatStyle.Attributed
framework: foundation
role: symbol
role_heading: Structure
path: foundation/bytecountformatstyle/attributed-swift.struct
---

# ByteCountFormatStyle.Attributed

A format style that converts byte counts into attributed strings.

## Declaration

```swift
struct Attributed
```

## Overview

Overview Use the attributed modifier on a ByteCountFormatStyle to create a format style of this type. The attributed strings that this fomat style creates contain attributes from the AttributeScopes.FoundationAttributes.NumberFormatAttributes attribute scope. Use these attributes to determine which runs of the attributed string represent different parts of the formatted value.

## Topics

### Formatting a byte count

- [format(_:)](foundation/bytecountformatstyle/attributed-swift.struct/format(_:).md)

### Customizing style behavior

- [style](foundation/bytecountformatstyle/attributed-swift.struct/style.md)
- [ByteCountFormatStyle.Style](foundation/bytecountformatstyle/style-swift.enum.md)

### Accessing style properties

- [allowedUnits](foundation/bytecountformatstyle/attributed-swift.struct/allowedunits.md)
- [spellsOutZero](foundation/bytecountformatstyle/attributed-swift.struct/spellsoutzero.md)
- [includesActualByteCount](foundation/bytecountformatstyle/attributed-swift.struct/includesactualbytecount.md)
- [locale](foundation/bytecountformatstyle/attributed-swift.struct/locale.md)

### Modifying style locale

- [locale(_:)](foundation/bytecountformatstyle/attributed-swift.struct/locale(_:).md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [FormatStyle](foundation/formatstyle.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating attributed strings

- [attributed](foundation/bytecountformatstyle/attributed-swift.property.md)
