<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SurroundingsEffect/colorMultiply(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18SurroundingsEffectV13colorMultiplyyAcA5ColorVFZ"
  },
  "title" : "colorMultiply(_:)"
}
-->

# colorMultiply(_:)

An effect that applies a custom tint to the passthrough video by
multiplying the passthrough with a [`Color`](/documentation/SwiftUI/Color).

```
static func colorMultiply(_ color: Color) -> SurroundingsEffect
```

## Parameters

`color`

The color to bias the passthrough toward. The opacity of the
color is ignored. Use the extended color space to brighten the
passthrough.

## Discussion

Use this with the [`preferredSurroundingsEffect(_:)`](/documentation/SwiftUI/View/preferredSurroundingsEffect(_:)) view modifier
when you want to tint the passthrough while displaying a particular
view. The system may decide to limit how much each color in the
passthrough can be brightened or darkened. `Color.black` will cause no
passthrough to be visible, and `Color.white` will have no effect.
`Color(red: 1.15, green: 1.0, blue: 1.0)` would brighten the red in the
passthrough by 15 percent. This effect will only be applied while an
immersive space is opened.

---

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)