---
title: terminationOnRemoval
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsstatusitem/behavior-swift.struct/terminationonremoval
---

# terminationOnRemoval

A status item that quits the application upon removal.

## Declaration

```swift
static var terminationOnRemoval: NSStatusItem.Behavior { get }
```

## Discussion

Discussion A status item with this behavior quits the application if the user removes it from the menu bar. This behavior implicitly provides the same functionality as removalAllowed. The terminationOnRemoval behavior is suitable for applications that display only a NSStatusItem and provide no other user interface.

## See Also

### Behaviors

- [removalAllowed](appkit/nsstatusitem/behavior-swift.struct/removalallowed.md)
