<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIAttachmentBehavior/items",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIAttachmentBehavior(py)items"
  },
  "title" : "items"
}
-->

# items

The dynamic items connected by the attachment behavior.

```
var items: [any UIDynamicItem] { get }
```

## Discussion

Contains two elements when used for an attachment behavior of type [`UIAttachmentBehavior.AttachmentType.items`](/documentation/UIKit/UIAttachmentBehavior/AttachmentType/items); contains one element when used for an attachment behavior of type [`UIAttachmentBehavior.AttachmentType.anchor`](/documentation/UIKit/UIAttachmentBehavior/AttachmentType/anchor).

---

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)