---
title: "existing(_:container:allowedSharingOptions:)"
framework: cloudkit
role: symbol
role_heading: Type Method
path: "cloudkit/cksharetransferrepresentation/exportedshare/existing(_:container:allowedsharingoptions:)"
---

# existing(_:container:allowedSharingOptions:)

Allows the user to view or make modifications to the share settings.

## Declaration

```swift
static func existing(_ share: CKShare, container: CKContainer, allowedSharingOptions: CKAllowedSharingOptions = CKAllowedSharingOptions.standard) -> CKShareTransferRepresentation<Item>.ExportedShare
```

## Parameters

- `share`: The existing doc://com.apple.cloudkit/documentation/CloudKit/CKShare object.
- `container`: The doc://com.apple.cloudkit/documentation/CloudKit/CKContainer for the share.
- `allowedSharingOptions`: The doc://com.apple.cloudkit/documentation/CloudKit/CKAllowedSharingOptions. The doc://com.apple.cloudkit/documentation/CloudKit/CKAllowedSharingOptions/standard option is the default.

## Return Value

Return Value The CKShareTransferRepresentation.ExportedShare with updated share settings.

## Discussion

Discussion Use this method when you have a CKShare that’s already saved to the server. When your app invokes the share sheet with a CKShare registered with this method, the system allows the owner to make modifications to the share settings, or allows a participant to view the share settings.

## See Also

### Preparing an exported share

- [prepareShare(container:allowedSharingOptions:preparationHandler:)](cloudkit/cksharetransferrepresentation/exportedshare/prepareshare(container:allowedsharingoptions:preparationhandler:).md)
