<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFocusRingPlacement/set()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@F@NSSetFocusRingStyle"
  },
  "title" : "set()"
}
-->

# set()

Specifies how the system draws the focus ring.

```
func set()
```

## Discussion

Use [`NSFocusRingPlacement.above`](/documentation/AppKit/NSFocusRingPlacement/above) to draw the focus ring over an image, use [`NSFocusRingPlacement.below`](/documentation/AppKit/NSFocusRingPlacement/below) to draw the focus ring under text, and use [`NSFocusRingPlacement.only`](/documentation/AppKit/NSFocusRingPlacement/only) if you don’t have an image or text. For the [`NSFocusRingPlacement.only`](/documentation/AppKit/NSFocusRingPlacement/only) case, fills a shape to add the focus ring around the shape.

Note that the focus ring may actually be drawn outside the view but will be clipped to any clipping superview or the window content view.

---

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)