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

# setItems(_:options:)

Adds an array of items to a pasteboard, and sets privacy options for all the items on the pasteboard.

```
func setItems(_ items: [[String : Any]], options: [UIPasteboard.OptionsKey : Any] = [:])
```

## Parameters

`items`

An array of items to add to the pasteboard.

`options`

The privacy options to apply to all the items on the pasteboard. The available options are described in [`UIPasteboard.OptionsKey`](/documentation/UIKit/UIPasteboard/OptionsKey).

## Discussion

---

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)