---
title: "init(shareURLs:)"
framework: cloudkit
role: symbol
role_heading: Initializer
path: "cloudkit/ckfetchsharemetadataoperation/init(shareurls:)"
---

# init(shareURLs:)

Creates an operation for fetching the metadata for the specified shares.

## Declaration

```swift
convenience init(shareURLs: [URL])
```

## Parameters

- `shareURLs`: The URLs of the shares. If you specify nil, you must assign a value to the doc://com.apple.cloudkit/documentation/CloudKit/CKFetchShareMetadataOperation/shareURLs property before you execute the operation.

## Discussion

Discussion After creating the operation, assign a handler to the fetchShareMetadataCompletionBlock property to process the results.

## See Also

### Creating an Operation

- [init()](cloudkit/ckfetchsharemetadataoperation/init().md)
