---
title: backgroundStyle
framework: sharedwithyou
role: symbol
role_heading: Instance Property
path: sharedwithyou/swattributionview/backgroundstyle-swift.property
---

# backgroundStyle

The background style of the child view that contains names and avatars.

## Declaration

```swift
var backgroundStyle: SWAttributionView.BackgroundStyle { get set }
```

## Discussion

Discussion If you don’t specify a background style, the system chooses one automatically. In general, SWAttributionView.BackgroundStyle.color looks best on monochrome backgrounds, while SWAttributionView.BackgroundStyle.material looks better on colored backgrounds.

## See Also

### Customizing highlights

- [displayContext](sharedwithyou/swattributionview/displaycontext-swift.property.md)
- [highlight](sharedwithyou/swattributionview/highlight.md)
- [highlightMenu](sharedwithyou/swattributionview/highlightmenu.md)
- [horizontalAlignment](sharedwithyou/swattributionview/horizontalalignment-swift.property.md)
- [menuTitleForHideAction](sharedwithyou/swattributionview/menutitleforhideaction.md)
- [preferredMaxLayoutWidth](sharedwithyou/swattributionview/preferredmaxlayoutwidth.md)
- [supplementalMenu](sharedwithyou/swattributionview/supplementalmenu.md)
