Instance Method

removeItem(_:)

Removes a specific dynamic item from the collision behavior.

Declaration

func removeItem(_ item: UIDynamicItem)

Parameters

item

The dynamic item that you want to remove.

See Also

Initializing and Managing a Collision Behavior

func addItem(UIDynamicItem)

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

init(items: [UIDynamicItem])

Initializes a collision behavior with an array of dynamic items.

var items: [UIDynamicItem]

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