Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

presentationPreventsAppTermination(_:)

A view modifier that maps SwiftUI's presentationPreventsAppTermination.

iOS: unavailable (no-op)macOS 15.4+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.presentationPreventsAppTermination(prevents: Boolean?): Modifier

Overview

Modifier.presentationPreventsAppTermination(prevents = true)

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

nonisolated func presentationPreventsAppTermination(_ prevents: Bool?) -> some View

Topics

Overloads

fun Modifier.presentationPreventsAppTermination(prevents: Boolean?): Modifier
SwiftUI View.presentationPreventsAppTermination(_:)