---
title: drawFocusRingMask()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsview/drawfocusringmask()
---

# drawFocusRingMask()

Draws the focus ring mask for the view.

## Declaration

```swift
func drawFocusRingMask()
```

## Discussion

Discussion This method provides the shape of the focus ring mask by drawing the focus ring mask. An implementation of this method should draw in the view’s interior (bounds) coordinate space, that the focus ring style has been set (it will be set it to NSFocusRingPlacement.only to capture the focus ring itself), and that the fill and stroke colors have been set to an arbitrary fully opaque color. Subclasses that find the default behavior insufficient should only draw the focus ring shape. The NSView implementation of this method simply fills [self bounds].

## See Also

### Drawing the Focus Ring

- [focusRingType](appkit/nsview/focusringtype.md)
- [focusRingMaskBounds](appkit/nsview/focusringmaskbounds.md)
- [noteFocusRingMaskChanged()](appkit/nsview/notefocusringmaskchanged().md)
- [setKeyboardFocusRingNeedsDisplay(_:)](appkit/nsview/setkeyboardfocusringneedsdisplay(_:).md)
- [defaultFocusRingType](appkit/nsview/defaultfocusringtype.md)
