---
title: "UAZoomChangeFocus(_:_:_:)"
framework: Application Services
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: applicationservices/1458830-uazoomchangefocus
---

# UAZoomChangeFocus(_:_:_:)

Tells the Universal Access zoom feature where it should focus.

## Declaration

```swift
func UAZoomChangeFocus(_ inRect: UnsafePointer<CGRect>!, _ inHighlightRect: UnsafePointer<CGRect>!, _ inType: UAZoomChangeFocusType) -> OSStatus
```

## Parameters

- `inRect`: The frame of the element in focus, in global 72-dot-per-inch (dpi) coordinates.
- `inHighlightRect`: The frame of the highlighted part of the element in focus, in global 72 dpi coordinates. If the whole element is in focus, and not just a smaller part of it, pass the inRect parameter and pass NULL for inHighlightRect.
- `inType`: A value of type doc://com.apple.documentation/documentation/applicationservices/uazoomchangefocustype.

## Return Value

Return Value Returns noErr if there were no problems, if Universal Access Zoom is zoomed all the way out, or if the feature is off; returns paramErr if inRect is NULL or if inType is out of range.

## Discussion

Discussion This function tells Universal Access the frame of the element in focus and the part of the element that should be in focus.

## See Also

### Miscellaneous

- [UAZoomEnabled()](applicationservices/1462288-uazoomenabled.md)
