<!--
{
  "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/peerEnded",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Nearby Interaction"
    ],
    "preciseIdentifier" : "c:@E@NINearbyObjectRemovalReason@NINearbyObjectRemovalReasonPeerEnded"
  },
  "title" : "NINearbyObject.RemovalReason.peerEnded"
}
-->

# NINearbyObject.RemovalReason.peerEnded

The peer ended the session.

```
case peerEnded
```

## Discussion

The framework provides this removal reason when the peer app calls [`invalidate()`](/documentation/NearbyInteraction/NISession/invalidate()).

---

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)