---
title: "canReadItem(withDataConformingToTypes:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspasteboard/canreaditem(withdataconformingtotypes:)"
---

# canReadItem(withDataConformingToTypes:)

Returns a Boolean value that indicates whether the receiver contains any items that conform to the specified UTIs.

## Declaration

```swift
func canReadItem(withDataConformingToTypes types: [String]) -> Bool
```

## Parameters

- `types`: An array of NSString objects containing UTIs.

## Return Value

Return Value true if the receiver contains any items that conform to the UTIs specified in types, otherwise false.

## See Also

### Related Documentation

- [readObjects(forClasses:options:)](appkit/nspasteboard/readobjects(forclasses:options:).md)

### Validating contents

- [availableType(from:)](appkit/nspasteboard/availabletype(from:).md)
- [canReadObject(forClasses:options:)](appkit/nspasteboard/canreadobject(forclasses:options:).md)
- [types](appkit/nspasteboard/types.md)
- [types(filterableTo:)](appkit/nspasteboard/types(filterableto:).md)
