---
title: "activityBackgroundTint(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/activitybackgroundtint(_:)"
---

# activityBackgroundTint(_:)

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

## Declaration

```swift
@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

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 activitySystemActionForegroundColor(_:) view modifier.

## See Also

### Configuring a Live Activity

- [activitySystemActionForegroundColor(_:)](swiftui/view/activitysystemactionforegroundcolor(_:).md)
- [isActivityFullscreen](swiftui/environmentvalues/isactivityfullscreen.md)
- [activityFamily](swiftui/environmentvalues/activityfamily.md)
