<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SharedWithYou",
  "identifier" : "/documentation/SharedWithYou/SWAttributionView/backgroundStyle-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Shared with You"
    ],
    "preciseIdentifier" : "c:objc(cs)SWAttributionView(py)backgroundStyle"
  },
  "title" : "backgroundStyle"
}
-->

# backgroundStyle

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

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

## Discussion

If you don’t specify a background style, the system chooses one automatically. In general, [`SWAttributionView.BackgroundStyle.color`](/documentation/SharedWithYou/SWAttributionView/BackgroundStyle-swift.enum/color) looks best on monochrome backgrounds, while [`SWAttributionView.BackgroundStyle.material`](/documentation/SharedWithYou/SWAttributionView/BackgroundStyle-swift.enum/material) looks better on colored backgrounds.

---

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)