<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/CrashDiagnostic/terminationCategory-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "s:9MetricKit15CrashDiagnosticV19terminationCategoryAC011TerminationF0VSgvp"
  },
  "title" : "terminationCategory"
}
-->

# terminationCategory

The category of termination that caused this crash.

```
let terminationCategory: CrashDiagnostic.TerminationCategory?
```

## Discussion

This value corresponds to the termination categories reported by
[`ForegroundTerminationMetric`](/documentation/MetricKit/ForegroundTerminationMetric) and [`BackgroundTerminationMetric`](/documentation/MetricKit/BackgroundTerminationMetric),
enabling correlation between individual crash diagnostics and aggregate
termination counts.

This property is `nil` when the termination category cannot be determined
from the available crash metadata.

---

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)