GraphicsContextBlendMode
The ways that a graphics context combines new content with background content.
Declaration
type GraphicsContextBlendMode =
| 'clear'
| 'color'
| 'colorBurn'
| 'colorDodge'
| 'copy'
| 'darken'
| 'destinationAtop'
| 'destinationIn'
| 'destinationOut'
| 'destinationOver'
| 'difference'
| 'exclusion'
| 'hardLight'
| 'hue'
| 'lighten'
| 'luminosity'
| 'multiply'
| 'normal'
| 'overlay'
| 'plusDarker'
| 'plusLighter'
| 'saturation'
| 'screen'
| 'softLight'
| 'sourceAtop'
| 'sourceIn'
| 'sourceOut'
| 'xor'
| { rawValue: number; };@frozen struct BlendModePass a literal, or build one with SwiftUI.GraphicsContextBlendMode from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'clear'SwiftUI.GraphicsContextBlendMode.clear'color'SwiftUI.GraphicsContextBlendMode.color'colorBurn'SwiftUI.GraphicsContextBlendMode.colorBurn'colorDodge'SwiftUI.GraphicsContextBlendMode.colorDodge'copy'SwiftUI.GraphicsContextBlendMode.copy'darken'SwiftUI.GraphicsContextBlendMode.darken'destinationAtop'SwiftUI.GraphicsContextBlendMode.destinationAtop'destinationIn'SwiftUI.GraphicsContextBlendMode.destinationIn'destinationOut'SwiftUI.GraphicsContextBlendMode.destinationOut'destinationOver'SwiftUI.GraphicsContextBlendMode.destinationOver'difference'SwiftUI.GraphicsContextBlendMode.difference'exclusion'SwiftUI.GraphicsContextBlendMode.exclusion'hardLight'SwiftUI.GraphicsContextBlendMode.hardLight'hue'SwiftUI.GraphicsContextBlendMode.hue'lighten'SwiftUI.GraphicsContextBlendMode.lighten'luminosity'SwiftUI.GraphicsContextBlendMode.luminosity'multiply'SwiftUI.GraphicsContextBlendMode.multiply'normal'SwiftUI.GraphicsContextBlendMode.normal'overlay'SwiftUI.GraphicsContextBlendMode.overlay'plusDarker'SwiftUI.GraphicsContextBlendMode.plusDarker'plusLighter'SwiftUI.GraphicsContextBlendMode.plusLighter'saturation'SwiftUI.GraphicsContextBlendMode.saturation'screen'SwiftUI.GraphicsContextBlendMode.screen'softLight'SwiftUI.GraphicsContextBlendMode.softLight'sourceAtop'SwiftUI.GraphicsContextBlendMode.sourceAtop'sourceIn'SwiftUI.GraphicsContextBlendMode.sourceIn'sourceOut'SwiftUI.GraphicsContextBlendMode.sourceOut'xor'SwiftUI.GraphicsContextBlendMode.xor
Type methods
Overview
Use one of these values to set the
GraphicsContext.blendMode-swift.property property of a
GraphicsContext. The value that you set affects how content
that you draw replaces or combines with content that you
previously drew into the context.
From Apple’s SwiftUI documentation. Code samples there are Swift.
See also
More in Drawing and shapes.
- AngleA geometric angle whose value you access in either radians or degrees.
- AngularGradientAn angular gradient.
- AnyGradientA color gradient.
- BlendModeModes for compositing a view with overlapping content.
- ButtonBorderShapeA shape used to draw a button's border.
- ColorMatrixA matrix to use in an RGBA color transformation.
- ConcentricRectangleAnimatableDataThe type defining the data to animate.
- ContainerRelativeShapeA shape that is replaced by an inset version of the current container shape. If no container shape was defined, is replaced by a rectangle.
- ContentShapeKindsA kind for the content shape of a view.
- CoordinateSpaceProtocolA frame of reference within the layout system.
- DefaultGlassEffectShapeThe default shape applied by glass effects, a capsule.
- EllipticalGradientA radial gradient that draws an ellipse.