---
title: "accept(_:)"
framework: cloudkit
role: symbol
role_heading: Instance Method
path: "cloudkit/ckcontainer/accept(_:)-5vv8p"
---

# accept(_:)

Accepts the specified share metadata and returns the accepted share to an awaiting caller.

## Declaration

```swift
func accept(_ metadata: CKShare.Metadata) async throws -> CKShare
```

## Parameters

- `metadata`: The metadata of the share to accept.

## Return Value

Return Value The corresponding share for the share metadata.
