---
title: "items(in:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidynamicanimator/items(in:)"
---

# items(in:)

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

## Declaration

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

## Parameters

- `rect`: The rectangle you are interested in.

## Return Value

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

## Discussion

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

- [init(referenceView:)](uikit/uidynamicanimator/init(referenceview:).md)
- [init(collectionViewLayout:)](uikit/uidynamicanimator/init(collectionviewlayout:).md)
- [addBehavior(_:)](uikit/uidynamicanimator/addbehavior(_:).md)
- [removeBehavior(_:)](uikit/uidynamicanimator/removebehavior(_:).md)
- [removeAllBehaviors()](uikit/uidynamicanimator/removeallbehaviors().md)
