<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKShareTransferRepresentation/ExportedShare/existing(_:container:allowedSharingOptions:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:8CloudKit29CKShareTransferRepresentationV13ExportedShareV8existing_9container21allowedSharingOptionsAEyx_GSo0C0C_So11CKContainerCSo09CKAllowedkL0CtFZ"
  },
  "title" : "existing(_:container:allowedSharingOptions:)"
}
-->

# existing(_:container:allowedSharingOptions:)

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

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

## Parameters

`share`

The existing [`CKShare`](/documentation/CloudKit/CKShare) object.

`container`

The [`CKContainer`](/documentation/CloudKit/CKContainer) for the share.

`allowedSharingOptions`

The [`CKAllowedSharingOptions`](/documentation/CloudKit/CKAllowedSharingOptions). The [`standard`](/documentation/CloudKit/CKAllowedSharingOptions/standard) option is the default.

## Return Value

The [`CKShareTransferRepresentation.ExportedShare`](/documentation/CloudKit/CKShareTransferRepresentation/ExportedShare) with updated share settings.

## Discussion

Use this method when you have a [`CKShare`](/documentation/CloudKit/CKShare) that’s already saved to the server.

When your app invokes the share sheet with a [`CKShare`](/documentation/CloudKit/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.

---

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)