<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFocusGuide",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIFocusGuide"
  },
  "title" : "UIFocusGuide"
}
-->

# UIFocusGuide

An object that exposes nonview areas as focusable.

```
@MainActor class UIFocusGuide
```

## Overview

As a subclass of [`UILayoutGuide`](/documentation/UIKit/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`](/documentation/UIKit/UILayoutGuide), [`UIFocusGuide`](/documentation/UIKit/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

[`enabled`](/documentation/UIKit/UIFocusGuide/isEnabled)

A Boolean value that indicates whether the guide is focusable.

[`preferredFocusEnvironments`](/documentation/UIKit/UIFocusGuide/preferredFocusEnvironments)

An array of focus environments to which the guide directs focus, ordered by priority.

[`preferredFocusedView`](/documentation/UIKit/UIFocusGuide/preferredFocusedView)

The view that the focus will be redirected to if this guide is focused.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`UIPopoverPresentationControllerSourceItem`](/documentation/UIKit/UIPopoverPresentationControllerSourceItem)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`UILayoutGuide`](/documentation/UIKit/UILayoutGuide)

---

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)