Contents

items(in:)

Returns the dynamic items, from the animator’s behaviors, that intersect a specified rectangle.

Declaration

func items(in rect: CGRect) -> [any UIDynamicItem]

Parameters

  • rect:

    The rectangle you are interested in.

Return Value

The dynamic items, from the animator’s behaviors, that intersect the specified rectangle.

Discussion

The coordinate system that pertains to the rect parameter depends on how you initialized the animator, as described in the Overview in this document.

See Also

Initializing and managing a dynamic animator