---
title: set()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsfocusringplacement/set()
---

# set()

Specifies how the system draws the focus ring.

## Declaration

```swift
func set()
```

## Discussion

Discussion Use NSFocusRingPlacement.above to draw the focus ring over an image, use NSFocusRingPlacement.below to draw the focus ring under text, and use NSFocusRingPlacement.only if you don’t have an image or text. For the 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.

## See Also

### Drawing Focus Rings

- [NSFocusRingPlacement](appkit/nsfocusringplacement.md)
- [NSFocusRingType](appkit/nsfocusringtype.md)
