---
title: "color(_:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/arview/environment-swift.struct/background-swift.struct/color(_:)"
---

# color(_:)

Use a solid color as a background.

## Declaration

```swift
static func color(_ color: ARView.Environment.Color) -> ARView.Environment.Background
```

## Parameters

- `color`: The color to use for the background.
