<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/activityBackgroundTint(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP9WidgetKitE22activityBackgroundTintyQrAA5ColorVSgF"
  },
  "title" : "activityBackgroundTint(_:)"
}
-->

# activityBackgroundTint(_:)

Sets the tint color for the background of a Live Activity that appears on the Lock Screen.

```
@MainActor @preconcurrency func activityBackgroundTint(_ color: Color?) -> some View
```

## Parameters

`color`

The background tint color to apply. To use the system’s default background material,
pass `nil`.

## Discussion

When you set a custom background tint color, consider setting a custom text color for the auxiliary
button people use to end a Live Activity on the Lock Screen. To set a custom
text color, use the
<doc://com.apple.documentation/documentation/SwiftUI/View/activitySystemActionForegroundColor(_:)>
view modifier.

---

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)