---
title: share
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicloudsharingcontroller/share
---

# share

A reference to the CloudKit share record used by the CloudKit sharing controller.

## Declaration

```swift
var share: CKShare? { get }
```

## Discussion

Discussion This property provides a reference to the CKShare record used by UICloudSharingController. The property is nil if the controller doesn’t have a share record. This can happen when the controller is initialized with the init(preparationHandler:) method and the preparation handler hasn’t yet been called.
