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

# UIFocusHaloEffect

A visual focus effect that draws a halo around the focus item.

```
class UIFocusHaloEffect
```

## Topics

### Creating a halo effect

[`init(roundedRect:cornerRadius:curve:)`](/documentation/UIKit/UIFocusHaloEffect/init(roundedRect:cornerRadius:curve:))

Creates a rounded halo effect using the specified corner radius and corner curve.

[`init(rect:)`](/documentation/UIKit/UIFocusHaloEffect/init(rect:))

Creates a rectangular halo effect using the specified rectangle.

[`init(path:)`](/documentation/UIKit/UIFocusHaloEffect/init(path:))

Creates a halo effect using the specified Bézier path.

### Configuring a halo effect

[`containerView`](/documentation/UIKit/UIFocusHaloEffect/containerView)

The container view to place the halo effect into.

[`referenceView`](/documentation/UIKit/UIFocusHaloEffect/referenceView)

The view to place the halo effect above.

[`position`](/documentation/UIKit/UIFocusHaloEffect/position-swift.property)

The position of the halo effect relative to its shape.

[`UIFocusHaloEffect.Position`](/documentation/UIKit/UIFocusHaloEffect/Position-swift.enum)

Constants that describe positions for drawing the halo focus effect.



---

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)