---
title: "focusItems(in:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uifocusitemcontainer/focusitems(in:)"
---

# focusItems(in:)

Retrieves all of the focus items within this container that intersect with the provided rectangle.

## Declaration

```swift
func focusItems(in rect: CGRect) -> [any UIFocusItem]
```

## Parameters

- `rect`: The rectangle used to look for focus items that intersect the rectangle expressed in the container’s coordinate space.

## Return Value

Return Value An array of focus items that intersect the provided rectangle. The focus items are expressed in the container’s coordinate space.

## Discussion

Discussion The found focus items should report their frames in the coordinateSpace.

## See Also

### Retrieving focus items

- [coordinateSpace](uikit/uifocusitemcontainer/coordinatespace.md)
