---
title: difference
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/graphicscontext/blendmode-swift.struct/difference
---

# difference

A mode that subtracts the brighter of the source image sample color or the background image sample color from the other.

## Declaration

```swift
static var difference: GraphicsContext.BlendMode { get }
```

## Discussion

Discussion Source image sample values that are black produce no change; white inverts the background color values.

## See Also

### Inverting

- [exclusion](swiftui/graphicscontext/blendmode-swift.struct/exclusion.md)
