---
title: "init(forAccepting:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uipasteconfiguration/init(foraccepting:)-6is3h"
---

# init(forAccepting:)

Initializes a new paste configuration with the UTIs declared as supported by a specified class.

## Declaration

```swift
convenience init(forAccepting aClass: any NSItemProviderReading.Type)
```

## Parameters

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

## Return Value

Return Value A paste configuration initialized with acceptable uniform type identifiers (UTIs) supported by the specified class.

## Discussion

Discussion When you use this initializer, the property readableTypeIdentifiersForItemProvider, implemented on aClass, is used to determine the acceptable UTIs.

## See Also

### Initializing a paste configuration

- [init()](uikit/uipasteconfiguration/init().md)
- [init(acceptableTypeIdentifiers:)](uikit/uipasteconfiguration/init(acceptabletypeidentifiers:).md)
- [init(forAccepting:)](uikit/uipasteconfiguration/init(foraccepting:)-84r2r.md)
