<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/VisualEffect/blendMode(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12VisualEffectPAAE9blendModeyQrAA05BlendF0OF"
  },
  "title" : "blendMode(_:)"
}
-->

# blendMode(_:)

Sets the blend mode for compositing this view with overlapping views.

```
func blendMode(_ blendMode: BlendMode) -> some VisualEffect
```

## Parameters

`blendMode`

The [`BlendMode`](/documentation/SwiftUI/BlendMode) for compositing.

## Return Value

An effect that applies `blendMode` to this view.

## Discussion

Use `blendMode(_:)` to combine overlapping views and use a different
visual effect to produce the result. The [`BlendMode`](/documentation/SwiftUI/BlendMode) enumeration
defines many possible effects.

---

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)