---
title: terminationReason
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/process/terminationreason-swift.property
---

# terminationReason

The reason the system terminated the task.

## Declaration

```swift
var terminationReason: Process.TerminationReason { get }
```

## Return Value

Return Value The termination status. The possible values are described in Process.TerminationReason.

## See Also

### Querying the process state

- [isRunning](foundation/process/isrunning.md)
- [terminationStatus](foundation/process/terminationstatus.md)
