Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
Structure

GraphicsContext

The Compose SwiftUI form of SwiftUI's GraphicsContext.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
class BlendMode

Overview

This is the Kotlin form of SwiftUI GraphicsContext.BlendMode: SwiftUI documentation. In Swift it reads:

@frozen struct BlendMode

Topics

Type properties

val colorDodge: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.colorDodge
val difference: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.difference
val luminosity: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.luminosity
val plusDarker: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.plusDarker
val saturation: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.saturation
val sourceAtop: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.sourceAtop
val plusLighter: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.plusLighter
val destinationIn: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.destinationIn
val destinationOut: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.destinationOut
val destinationAtop: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.destinationAtop
val destinationOver: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.destinationOver
val hue: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.hue
val xor: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.xor
val copy: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.copy
val clear: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.clear
val color: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.color
val darken: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.darken
val normal: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.normal
val screen: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.screen
val lighten: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.lighten
val overlay: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.overlay
val multiply: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.multiply
val sourceIn: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.sourceIn
val colorBurn: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.colorBurn
val exclusion: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.exclusion
val hardLight: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.hardLight
val softLight: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.softLight
val sourceOut: GraphicsContext.BlendMode
SwiftUI GraphicsContext.BlendMode.sourceOut
val dithersResult: GraphicsContext.BlurOptions
SwiftUI GraphicsContext.BlurOptions.dithersResult
val opaque: GraphicsContext.BlurOptions
SwiftUI GraphicsContext.BlurOptions.opaque
val inverse: GraphicsContext.ClipOptions
SwiftUI GraphicsContext.ClipOptions.inverse
val luminanceToAlpha: GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.luminanceToAlpha
val linearColor: GraphicsContext.FilterOptions
SwiftUI GraphicsContext.FilterOptions.linearColor
val linearColor: GraphicsContext.GradientOptions
SwiftUI GraphicsContext.GradientOptions.linearColor
val mirror: GraphicsContext.GradientOptions
SwiftUI GraphicsContext.GradientOptions.mirror
val repeat: GraphicsContext.GradientOptions
SwiftUI GraphicsContext.GradientOptions.repeat
val foreground: GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.foreground
val backdrop: GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.backdrop
val shadowOnly: GraphicsContext.ShadowOptions
SwiftUI GraphicsContext.ShadowOptions.shadowOnly
val shadowAbove: GraphicsContext.ShadowOptions
SwiftUI GraphicsContext.ShadowOptions.shadowAbove
val invertsAlpha: GraphicsContext.ShadowOptions
SwiftUI GraphicsContext.ShadowOptions.invertsAlpha
val disablesGroup: GraphicsContext.ShadowOptions
SwiftUI GraphicsContext.ShadowOptions.disablesGroup

Methods

fun brightness(amount: Double): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.brightness(_:)
fun saturation(amount: Double): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.saturation(_:)
fun colorInvert(amount: Double = 1.0): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.colorInvert(_:)
fun colorMatrix(matrix: ColorMatrix, isPremultiplied: Boolean): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.colorMatrix(_:isPremultiplied:) · iOS 18.2+, macOS 15.2+, tvOS 18.2+, watchOS 11.2+
fun colorMatrix(matrix: ColorMatrix): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.colorMatrix(_:)
fun colorShader(shader: Shader): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.colorShader(_:) · iOS 17.0+, macOS 14.0+, tvOS 17.0+, watchOS: unavailable (no-op)
fun hueRotation(angle: Angle): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.hueRotation(_:)
fun layerShader(shader: Shader, maxSampleOffset: CGSize): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.layerShader(_:maxSampleOffset:) · iOS 17.0+, macOS 14.0+, tvOS 17.0+, watchOS: unavailable (no-op)
fun alphaMultiply(color: Color): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.alphaMultiply(_:) · iOS 18.0+, macOS 15.0+, tvOS 18.0+, watchOS 11.0+
fun colorMultiply(color: Color): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.colorMultiply(_:)
fun alphaThreshold(min: Double, max: Double = 1.0, color: Color? = null): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.alphaThreshold(min:max:color:)
fun distortionShader(shader: Shader, maxSampleOffset: CGSize): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.distortionShader(_:maxSampleOffset:) · iOS 17.0+, macOS 14.0+, tvOS 17.0+, watchOS: unavailable (no-op)
fun projectionTransform(matrix: ProjectionTransform): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.projectionTransform(_:)
fun blur(radius: Double, options: GraphicsContext.BlurOptions? = null): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.blur(radius:options:)
fun shadow(color: Color? = null, radius: Double, x: Double = 0.0, y: Double = 0.0, blendMode: GraphicsContext.BlendMode = GraphicsContext.BlendMode.normal, options: GraphicsContext.ShadowOptions? = null): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.shadow(color:radius:x:y:blendMode:options:)
fun contrast(amount: Double): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.contrast(_:)
fun grayscale(amount: Double): GraphicsContext.Filter
SwiftUI GraphicsContext.Filter.grayscale(_:)
fun conicGradient(gradient: AnyGradient, center: CGPoint, angle: Angle = Angle(), options: GraphicsContext.GradientOptions? = null): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.conicGradient(_:center:angle:options:) · iOS 18.0+, macOS 15.0+, tvOS 18.0+, watchOS 11.0+
fun conicGradient(gradient: Gradient, center: CGPoint, angle: Angle = Angle(), options: GraphicsContext.GradientOptions? = null): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.conicGradient(_:center:angle:options:)
fun linearGradient(gradient: AnyGradient, startPoint: CGPoint, endPoint: CGPoint, options: GraphicsContext.GradientOptions? = null): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.linearGradient(_:startPoint:endPoint:options:) · iOS 18.0+, macOS 15.0+, tvOS 18.0+, watchOS 11.0+
fun linearGradient(gradient: Gradient, startPoint: CGPoint, endPoint: CGPoint, options: GraphicsContext.GradientOptions? = null): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.linearGradient(_:startPoint:endPoint:options:)
fun radialGradient(gradient: AnyGradient, startCenter: CGPoint, startRadius: Double, endCenter: CGPoint, endRadius: Double, options: GraphicsContext.GradientOptions? = null): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.radialGradient(_:startCenter:startRadius:endCenter:endRadius:options:) · iOS 18.2+, macOS 15.2+, tvOS 18.2+, watchOS 11.2+
fun radialGradient(gradient: Gradient, startCenter: CGPoint, startRadius: Double, endCenter: CGPoint, endRadius: Double, options: GraphicsContext.GradientOptions? = null): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.radialGradient(_:startCenter:startRadius:endCenter:endRadius:options:) · iOS 18.2+, macOS 15.2+, tvOS 18.2+, watchOS 11.2+
fun radialGradient(gradient: AnyGradient, center: CGPoint, startRadius: Double, endRadius: Double, options: GraphicsContext.GradientOptions? = null): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.radialGradient(_:center:startRadius:endRadius:options:) · iOS 18.0+, macOS 15.0+, tvOS 18.0+, watchOS 11.0+
fun radialGradient(gradient: Gradient, center: CGPoint, startRadius: Double, endRadius: Double, options: GraphicsContext.GradientOptions? = null): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.radialGradient(_:center:startRadius:endRadius:options:)
fun color(colorSpace: Color.RGBColorSpace = Color.RGBColorSpace.sRGB, red: Double, green: Double, blue: Double, opacity: Double = 1.0): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.color(_:red:green:blue:opacity:)
fun color(colorSpace: Color.RGBColorSpace = Color.RGBColorSpace.sRGB, white: Double, opacity: Double = 1.0): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.color(_:white:opacity:)
fun color(color: Color): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.color(_:)
fun style(style: ShapeStyle): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.style(_:)
fun shader(shader: Shader, bounds: CGRect? = null): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.shader(_:bounds:) · iOS 17.0+, macOS 14.0+, tvOS 17.0+, watchOS: unavailable (no-op)
fun palette(array: List<GraphicsContext.Shading>): GraphicsContext.Shading
SwiftUI GraphicsContext.Shading.palette(_:)

Types

class BlendMode
SwiftUI GraphicsContext.BlendMode
class BlurOptions
SwiftUI GraphicsContext.BlurOptions
class ClipOptions
SwiftUI GraphicsContext.ClipOptions
class Filter
SwiftUI GraphicsContext.Filter
class FilterOptions
SwiftUI GraphicsContext.FilterOptions
class GradientOptions
SwiftUI GraphicsContext.GradientOptions
class Shading
SwiftUI GraphicsContext.Shading
class ShadowOptions
SwiftUI GraphicsContext.ShadowOptions