Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

projectionEffect(_:)

A view modifier that maps SwiftUI's projectionEffect.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.projectionEffect(transform: ProjectionTransform): Modifier

Overview

Modifier.projectionEffect(transform = ProjectionTransform.…)

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

nonisolated func projectionEffect(_ transform: ProjectionTransform) -> some View

Topics

Overloads

fun Modifier.projectionEffect(transform: ProjectionTransform): Modifier
SwiftUI View.projectionEffect(_:)