Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

presentationBackground(_:)

A view modifier that maps SwiftUI's presentationBackground.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.presentationBackground(style: ShapeStyle): Modifier

Overview

Modifier.presentationBackground(style = ShapeStyle.…)

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

nonisolated func presentationBackground<S>(_ style: S) -> some View where S : ShapeStyle

Topics

Overloads

fun Modifier.presentationBackground(alignment: Alignment = Alignment.center, content: @Composable () -> Unit): Modifier
SwiftUI View.presentationBackground(alignment:content:)
fun Modifier.presentationBackground(style: ShapeStyle): Modifier
SwiftUI View.presentationBackground(_:)