---
title: "object(withItemProviderData:typeIdentifier:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nsitemproviderreading/object(withitemproviderdata:typeidentifier:)"
---

# object(withItemProviderData:typeIdentifier:)

Creates a new instance of a class using the given data and UTI string.

## Declaration

```swift
static func object(withItemProviderData data: Data, typeIdentifier: String) throws -> Self
```

## Parameters

- `data`: The data used to create the object.
- `typeIdentifier`: The uniform type identifier (UTI) representing the data type of data.

## Return Value

Return Value An object created from the given data.
