---
title: "registerCKShare(_:container:allowedSharingOptions:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsitemprovider/registerckshare(_:container:allowedsharingoptions:)"
---

# registerCKShare(_:container:allowedSharingOptions:)

Registers an existing collaboration object on a server.

## Declaration

```swift
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

Discussion Use this method when a 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.

## See Also

### Registering CloudKit shares

- [registerCloudKitShare(_:container:)](foundation/nsitemprovider/registercloudkitshare(_:container:).md)
- [registerCloudKitShare(preparationHandler:)](foundation/nsitemprovider/registercloudkitshare(preparationhandler:).md)
- [registerCKShare(container:allowedSharingOptions:preparationHandler:)](foundation/nsitemprovider/registerckshare(container:allowedsharingoptions:preparationhandler:).md)
