---
title: adjustsImageWhenAncestorFocused
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiimageview/adjustsimagewhenancestorfocused
---

# adjustsImageWhenAncestorFocused

A Boolean value that determines whether the image view responds when an ancestor gains focus.

## Declaration

```swift
var adjustsImageWhenAncestorFocused: Bool { get set }
```

## Discussion

Discussion When the value of this property is true and an ancestor of the image view becomes focused, the image view adjusts the frame of its image using the focusedFrameGuide property. On supported Apple TV devices, setting this property to true renders the image with a Liquid Glass effect when it gains focus. The default value of this property is false.

## See Also

### Managing focus-related behaviors

- [focusedFrameGuide](uikit/uiimageview/focusedframeguide.md)
- [masksFocusEffectToContents](uikit/uiimageview/masksfocuseffecttocontents.md)
