---
title: "blendMode(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/visualeffect/blendmode(_:)"
---

# blendMode(_:)

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

## Declaration

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

```

## Parameters

- `blendMode`: The doc://com.apple.SwiftUI/documentation/SwiftUI/BlendMode for compositing.

## Return Value

Return Value An effect that applies blendMode to this view.

## Discussion

Discussion Use blendMode(_:) to combine overlapping views and use a different visual effect to produce the result. The BlendMode enumeration defines many possible effects.
