<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StateReporting",
  "identifier" : "/documentation/StateReporting/ReportableMetadataValue",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "StateReporting"
    ],
    "preciseIdentifier" : "s:14StateReporting23ReportableMetadataValueO"
  },
  "title" : "ReportableMetadataValue"
}
-->

# ReportableMetadataValue

A value in a reportable-metadata dictionary.

```
enum ReportableMetadataValue
```

## Overview

Strings, numbers, and dates all initialize directly. The [`ReportableMetadata()`](/documentation/StateReporting/ReportableMetadata()) macro
constructs these automatically when you annotate your metadata type.

```swift
let values: [String: ReportableMetadataValue] = [
    "username": ReportableMetadataValue("alice"),
    "loginCount": ReportableMetadataValue(42),
    "lastLogin": ReportableMetadataValue(Date()),
    "score": ReportableMetadataValue(98.6)
]
```

## Topics

### Enumeration Cases

[`case date(Date)`](/documentation/StateReporting/ReportableMetadataValue/date(_:))

[`case floatingPoint(Double)`](/documentation/StateReporting/ReportableMetadataValue/floatingPoint(_:))

[`case integer(Int128)`](/documentation/StateReporting/ReportableMetadataValue/integer(_:))

[`case string(String)`](/documentation/StateReporting/ReportableMetadataValue/string(_:))

### Initializers

[`init(Int32)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-14guo)

[`init(UInt32)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-1ahz9)

[`init(UInt16)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-2f79p)

[`init(CGFloat)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-2h2re)

[`init(Date)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-2llwr)

[`init(Int64)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-5y574)

[`init(Bool)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-5yq8x)

[`init(UInt8)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-6kkn5)

[`init(Double)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-6r11y)

[`init(UInt)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-6z809)

[`init(Float)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-85rvl)

[`init(UInt64)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-90tzm)

[`init(Int16)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-9dt4i)

[`init(Int8)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-pijp)

[`init(Int)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-tnel)

[`init(String)`](/documentation/StateReporting/ReportableMetadataValue/init(_:)-zkel)

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)