Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

colorEffect(_:)

A view modifier that maps SwiftUI's colorEffect.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS: unavailable (no-op)
fun Modifier.colorEffect(shader: Shader, isEnabled: Boolean = true): Modifier

Overview

Modifier.colorEffect(shader = Shader.…)

This is the Kotlin form of SwiftUI View.colorEffect(_:isEnabled:): SwiftUI documentation. In Swift it reads:

nonisolated func colorEffect(_ shader: Shader, isEnabled: Bool = true) -> some View

Topics

Overloads

fun Modifier.colorEffect(shader: Shader, isEnabled: Boolean = true): Modifier
SwiftUI View.colorEffect(_:isEnabled:)