A dynamic item that comprises multiple other dynamic items.


class UIDynamicItemGroup : NSObject


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 objects. You can add a group to any 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.


Initializing a Group

init(items: [UIDynamicItem])

Initializes and returns a group containing the specified items.

Getting the Dynamic Items in a Group

var items: [UIDynamicItem]

The dynamic items in the group.


Inherits From

See Also

Dynamic Items

protocol UIDynamicItem

A set of methods that can make a custom object eligible to participate in UIKit Dynamics.

class UIDynamicItemBehavior

A base dynamic animation configuration for one or more dynamic items.