<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Array/byStateReportingDomain-8k1ux",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Sa9MetricKitAA0A6ReportV10StateEntryVRszlE02byD15ReportingDomainSDyAA0dgH0VSayAEGGvp"
  },
  "title" : "byStateReportingDomain"
}
-->

# byStateReportingDomain

State entries grouped by their StateReporting domain.

```
var byStateReportingDomain: [StateReportingDomain : [MetricReport.StateEntry]] { get }
```

## Discussion

State entries with active StateReporting context are grouped by their domain.

---

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)