<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPasteboard/types(forItemSet:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPasteboard(im)pasteboardTypesForItemSet:"
  },
  "title" : "types(forItemSet:)"
}
-->

# types(forItemSet:)

Returns an array of representation types for each specified pasteboard item.

```
func types(forItemSet itemSet: IndexSet?) -> [[String]]?
```

## Parameters

`itemSet`

An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in `nil` to request all pasteboard items.

## Return Value

An array of arrays, with each inner array holding the representation types for a particular pasteboard item.

## See Also

[`numberOfItems`](/documentation/UIKit/UIPasteboard/numberOfItems)

The number of items for the pasteboard.



---

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)