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

# copy

A mode that replaces background image samples with source image samples.

## Declaration

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

## Discussion

Discussion Unlike the normal mode, the source image completely replaces the background, so that even transparent pixels in the source image replace opaque pixels in the background, rather than letting the background show through. This mode implements the equation R = S where R is the composite image. S is the source image.

## See Also

### Accessing Porter-Duff modes

- [clear](swiftui/graphicscontext/blendmode-swift.struct/clear.md)
- [sourceIn](swiftui/graphicscontext/blendmode-swift.struct/sourcein.md)
- [sourceOut](swiftui/graphicscontext/blendmode-swift.struct/sourceout.md)
- [sourceAtop](swiftui/graphicscontext/blendmode-swift.struct/sourceatop.md)
- [destinationOver](swiftui/graphicscontext/blendmode-swift.struct/destinationover.md)
- [destinationIn](swiftui/graphicscontext/blendmode-swift.struct/destinationin.md)
- [destinationOut](swiftui/graphicscontext/blendmode-swift.struct/destinationout.md)
- [destinationAtop](swiftui/graphicscontext/blendmode-swift.struct/destinationatop.md)
- [xor](swiftui/graphicscontext/blendmode-swift.struct/xor.md)
