---
title: "canLoadObjects(ofClass:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidragdropsession/canloadobjects(ofclass:)"
---

# canLoadObjects(ofClass:)

Returns a Boolean value that indicates whether at least one drag item in the session can create an instance of the specified class.

## Declaration

```swift
func canLoadObjects(ofClass aClass: any NSItemProviderReading.Type) -> Bool
```

## Parameters

- `aClass`: A class conforming to the doc://com.apple.documentation/documentation/Foundation/NSItemProviderReading protocol.

## Return Value

Return Value true if at least one drag item in the session can create an instance of the specified class; otherwise, false.

## See Also

### Checking for drag items

- [hasItemsConforming(toTypeIdentifiers:)](uikit/uidragdropsession/hasitemsconforming(totypeidentifiers:).md)
- [items](uikit/uidragdropsession/items.md)
