<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFocusItemContainer/focusItems(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIFocusItemContainer(im)focusItemsInRect:"
  },
  "title" : "focusItems(in:)"
}
-->

# focusItems(in:)

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

```
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

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

## Discussion

The found focus items should report their frames in the [`coordinateSpace`](/documentation/UIKit/UIFocusItemContainer/coordinateSpace).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)