Class

UIDynamicItemGroup

A dynamic item that comprises multiple other dynamic items.

Declaration

class UIDynamicItemGroup : NSObject

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 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.

Topics

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.

Relationships

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software