<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/SynchronizationService/giveOwnership(of:toPeer:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22SynchronizationServiceP13giveOwnership2of6toPeerSbAA6EntityC_AA0cI2ID_ptF"
  },
  "title" : "giveOwnership(of:toPeer:)"
}
-->

# giveOwnership(of:toPeer:)

Transfers ownership of the given entity to the named network device.

```
@discardableResult @MainActor @preconcurrency func giveOwnership(of entity: Entity, toPeer: any SynchronizationPeerID) -> Bool
```

## Parameters

`entity`

The entity whose ownership is transferred.

`toPeer`

The networked device receiving ownership.

## Return Value

A Boolean that’s `true` if the ownership transfer succeeds.

---

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)