<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributeScopes/FoundationAttributes/ByteCountAttribute/Unit",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation15AttributeScopesO0A10AttributesV09ByteCountB0O4UnitO"
  },
  "title" : "AttributeScopes.FoundationAttributes.ByteCountAttribute.Unit"
}
-->

# AttributeScopes.FoundationAttributes.ByteCountAttribute.Unit

```
enum Unit
```

## Topics

### Enumeration Cases

[`case byte`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ByteCountAttribute/Unit/byte)

[`case eb`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ByteCountAttribute/Unit/eb)

[`case gb`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ByteCountAttribute/Unit/gb)

[`case kb`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ByteCountAttribute/Unit/kb)

[`case mb`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ByteCountAttribute/Unit/mb)

[`case pb`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ByteCountAttribute/Unit/pb)

[`case tb`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ByteCountAttribute/Unit/tb)

[`case yb`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ByteCountAttribute/Unit/yb)

[`case zb`](/documentation/Foundation/AttributeScopes/FoundationAttributes/ByteCountAttribute/Unit/zb)

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`Decodable`](/documentation/Swift/Decodable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)