---
title: terminationCategory
framework: metrickit
role: symbol
role_heading: Instance Property
path: metrickit/crashdiagnostic/terminationcategory-swift.property
---

# terminationCategory

The category of termination that caused this crash.

## Declaration

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

## Discussion

Discussion This value corresponds to the termination categories reported by ForegroundTerminationMetric and 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.

## See Also

### Termination counts

- [terminationReason](metrickit/crashdiagnostic/terminationreason-swift.property.md)
