<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSItemProvider/registerCKShare(_:container:allowedSharingOptions:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So14NSItemProviderC8CloudKitE15registerCKShare_9container21allowedSharingOptionsySo0F0C_So11CKContainerCSo09CKAllowediJ0CtF"
  },
  "title" : "registerCKShare(_:container:allowedSharingOptions:)"
}
-->

# registerCKShare(_:container:allowedSharingOptions:)

Registers an existing collaboration object on a server.

```
func registerCKShare(_ share: CKShare, container: CKContainer, allowedSharingOptions: CKAllowedSharingOptions = CKAllowedSharingOptions.standard)
```

## Parameters

`share`

An existing <doc://com.apple.documentation/documentation/CloudKit/CKShare> on the server.

`container`

A <doc://com.apple.documentation/documentation/CloudKit/CKContainer> the system uses to coordinate all the interactions between your app and the server.

`allowedSharingOptions`

The <doc://com.apple.documentation/documentation/CloudKit/CKAllowedSharingOptions>. The standard option is the default.

## Discussion

Use this method when a <doc://com.apple.documentation/documentation/CloudKit/CKShare> currently exists on the server. When the system invokes the share sheet with a `CKShare` that you register with this method, it allows the owner to make modifications to the share settings, and allows a participant to view the share settings.

---

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)