---
title: UIFocusGuide
framework: uikit
role: symbol
role_heading: Class
path: uikit/uifocusguide
---

# UIFocusGuide

An object that exposes nonview areas as focusable.

## Declaration

```swift
@MainActor class UIFocusGuide
```

## Mentioned in

Adding user-focusable elements to a tvOS app Creating custom navigation interactions

## Overview

Overview As a subclass of UILayoutGuide, a focus guide is not a view and does not define a new view or participate in the view hierarchy at all, except as an Auto Layout guide. Unlike UILayoutGuide, UIFocusGuide represents an invisible, focusable region that can redirect focus movement to other views. The UIFocus.h header file, including its related classes and its protocol, creates a single high-level software interface for controlling focus in apps that use focus-based input. This programming interface also helps to control focus behavior on the screen.

## Topics

### Enabling focus

- [isEnabled](uikit/uifocusguide/isenabled.md)
- [preferredFocusEnvironments](uikit/uifocusguide/preferredfocusenvironments.md)
- [preferredFocusedView](uikit/uifocusguide/preferredfocusedview.md)

## Relationships

### Inherits From

- [UILayoutGuide](uikit/uilayoutguide.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [UIPopoverPresentationControllerSourceItem](uikit/uipopoverpresentationcontrollersourceitem.md)

## See Also

### Focus guides

- [Creating custom navigation interactions](uikit/creating-custom-navigation-interactions.md)
