<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPasteConfiguration/init(forAccepting:)-6is3h",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPasteConfiguration(im)initWithTypeIdentifiersForAcceptingClass:"
  },
  "title" : "init(forAccepting:)"
}
-->

# init(forAccepting:)

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

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

## Parameters

`aClass`

A class conforming to the <doc://com.apple.documentation/documentation/Foundation/NSItemProviderReading> protocol.

## Return Value

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

## Discussion

When you use this initializer, the property <doc://com.apple.documentation/documentation/Foundation/NSItemProviderReading/readableTypeIdentifiersForItemProvider>, implemented on `aClass`, is used to determine the acceptable UTIs.

---

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)