<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSItemProvider/canLoadObject(ofClass:)-3eig9",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSItemProvider(im)canLoadObjectOfClass:"
  },
  "title" : "canLoadObject(ofClass:)"
}
-->

# canLoadObject(ofClass:)

Returns a Boolean value indicating whether an item provider can load objects of a specified class.

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

## Parameters

`aClass`

The object class for comparison.

## Return Value

`true` if the item provider can load objects of the class.

---

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)