One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

Shader.UsageType

struct · iOS 18.0+ · SDK 27.1

struct UsageType

The different ways in which a `Shader` may be used to render.

Members (4)

get · iOS 18.0+

shapeStyle

TypeScript
static get shapeStyle(): Shader_UsageType
Swift declaration
static let shapeStyle: Shader.UsageType

The shader will be used as a `ShapeStyle` value.

get · iOS 18.0+

colorEffect

TypeScript
static get colorEffect(): Shader_UsageType
Swift declaration
static let colorEffect: Shader.UsageType

The shader will be used as a color effect.

get · iOS 18.0+

layerEffect

TypeScript
static get layerEffect(): Shader_UsageType
Swift declaration
static let layerEffect: Shader.UsageType

The shader will be used as a layer effect.

get · iOS 18.0+

distortionEffect

TypeScript
static get distortionEffect(): Shader_UsageType
Swift declaration
static let distortionEffect: Shader.UsageType

The shader will be used as a geometric distortion effect.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →