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

# UIDynamicItemGroup

A dynamic item that comprises multiple other dynamic items.

```
@MainActor class UIDynamicItemGroup
```

## Overview

Use groups to manipulate a group of dynamic items together and treat them as a single unit for the purpose of collisions. The group can contain dynamic items but cannot contain other [`UIDynamicItemGroup`](/documentation/UIKit/UIDynamicItemGroup) objects. You can add a group to any [`UIDynamicBehavior`](/documentation/UIKit/UIDynamicBehavior) object.

The attributes of the dynamic item group are derived from the items of the group itself. The group’s bounds rectangle is the rectangle that encloses all of the contained dynamic items, and the center point of the group is the center point of the bounds rectangle.

## Topics

### Initializing a group

[`-  initWithItems:`](/documentation/UIKit/UIDynamicItemGroup/init(items:))

Initializes and returns a group containing the specified items.

### Getting the dynamic items in a group

[`items`](/documentation/UIKit/UIDynamicItemGroup/items)

The dynamic items in the group.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`UIDynamicItem`](/documentation/UIKit/UIDynamicItem)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)