<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKFetchShareMetadataOperation/init(shareURLs:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKFetchShareMetadataOperation(im)initWithShareURLs:"
  },
  "title" : "init(shareURLs:)"
}
-->

# init(shareURLs:)

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

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

## Parameters

`shareURLs`

The URLs of the shares. If you specify `nil`, you must assign a value to the [`shareURLs`](/documentation/CloudKit/CKFetchShareMetadataOperation/shareURLs) property before you execute the operation.

## Discussion

After creating the operation, assign a handler to the [`fetchShareMetadataCompletionBlock`](/documentation/CloudKit/CKFetchShareMetadataOperation/fetchShareMetadataCompletionBlock) property to process the results.

---

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)