Initializer

init(items:)

Initializes a collision behavior with an array of dynamic items.

Declaration

init(items: [UIDynamicItem])

Parameters

items

The dynamic items that you want to participate in the collision behavior.

Return Value

The initialized collision behavior, or nil if there was a problem initializing the object.

See Also

Initializing and Managing a Collision Behavior

func addItem(UIDynamicItem)

Adds a dynamic item to the collision behavior’s item array.

func removeItem(UIDynamicItem)

Removes a specific dynamic item from the collision behavior.

var items: [UIDynamicItem]

Returns the set of dynamic items you’ve added to the collision behavior.