---
title: "defaultRectForFocusPoint(ofInterest:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturedevice/defaultrectforfocuspoint(ofinterest:)"
---

# defaultRectForFocusPoint(ofInterest:)

The default rectangle of interest used for a given focus point of interest.

## Declaration

```swift
func defaultRectForFocusPoint(ofInterest pointOfInterest: CGPoint) -> CGRect
```

## Parameters

- `pointOfInterest`: The point of interest for which you want the default rectangle of interest.

## Discussion

Discussion For example, pass (0.5, 0.5) to get the focus rectangle of interest used for the default focus point of interest at (0.5, 0.5). note: The particular default rectangle returned depends on the current focus mode. This method returns CGRectNull if isFocusRectOfInterestSupported returns false.

## See Also

### Setting a focus rectangle of interest

- [isFocusRectOfInterestSupported](avfoundation/avcapturedevice/isfocusrectofinterestsupported.md)
- [focusRectOfInterest](avfoundation/avcapturedevice/focusrectofinterest.md)
- [minFocusRectOfInterestSize](avfoundation/avcapturedevice/minfocusrectofinterestsize.md)
