<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "watchOS: 7.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NearbyInteraction",
  "identifier" : "/documentation/NearbyInteraction/NINearbyObject/RemovalReason",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Nearby Interaction",
      "NearbyInteraction"
    ],
    "preciseIdentifier" : "c:@E@NINearbyObjectRemovalReason"
  },
  "title" : "NINearbyObject.RemovalReason"
}
-->

# NINearbyObject.RemovalReason

The reason a session removed a nearby object.

```
enum RemovalReason
```

## Overview

Each case is a possible value of the `reason` argument to the delegate’s [`session(_:didRemove:reason:)`](/documentation/NearbyInteraction/NISessionDelegate/session(_:didRemove:reason:)) callback.

## Topics

### Reasons

[`case peerEnded`](/documentation/NearbyInteraction/NINearbyObject/RemovalReason/peerEnded)

The peer ended the session.

[`case timeout`](/documentation/NearbyInteraction/NINearbyObject/RemovalReason/timeout)

NI timed out the session.

[`case peerEnded`](/documentation/NearbyInteraction/NINearbyObject/RemovalReason/peerEnded)

The peer ended the session.

[`case timeout`](/documentation/NearbyInteraction/NINearbyObject/RemovalReason/timeout)

NI timed out the session.

### Initializers

[`init?(rawValue: Int)`](/documentation/NearbyInteraction/NINearbyObject/RemovalReason/init(rawValue:))

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

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)