---
title: selectionBackgroundStyle
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscrubber/selectionbackgroundstyle
---

# selectionBackgroundStyle

The style applied to the background of selected items.

## Declaration

```swift
var selectionBackgroundStyle: NSScrubberSelectionStyle? { get set }
```

## Discussion

Discussion The default value is nil, which specifies no background decoration. You can either choose from one of the built-in selection styles (outlineOverlay or roundedBackground), or you can subclass NSScrubberSelectionStyle to create your own custom selection style.

## See Also

### Configuring the selection appearance

- [floatsSelectionViews](appkit/nsscrubber/floatsselectionviews.md)
- [selectionOverlayStyle](appkit/nsscrubber/selectionoverlaystyle.md)
