---
title: "itemType(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicloudsharingcontrollerdelegate/itemtype(for:)"
---

# itemType(for:)

Asks the delegate for the Uniform Type Identifier (UTI) of the item.

## Declaration

```swift
optional func itemType(for csc: UICloudSharingController) -> String?
```

## Discussion

Discussion UICloudSharingController uses the UTI to determine if the shared item is a special type. This allows text presented by the controller to refer to the item using descriptive wording. For example, if the shared item is a presentation and kUTTypePresentation is returned, the screens refer to the shared item as a presentation. Likewise, if the shared item is a document and kUTTypeContent is returned, the screens refer to the item as a document. And when kUTTypeSpreadsheet is returned, the screens refer to the item as a spreadsheet. For types unique to your app, return nil or do not implement this method.

## See Also

### Configuring the view controller

- [itemTitle(for:)](uikit/uicloudsharingcontrollerdelegate/itemtitle(for:).md)
- [itemThumbnailData(for:)](uikit/uicloudsharingcontrollerdelegate/itemthumbnaildata(for:).md)
