fun Modifier.sheet(isPresented: Boolean, onIsPresentedChange: (Boolean) -> Unit, content: @Composable () -> Unit): ModifierOverview
Present while a Boolean is true, or use Modifier.sheet(item, onDismiss) { item -> } to present one sheet per item.
Modifier.sheet(isPresented = showSettings, onIsPresentedChange = { showSettings = it }) {
SettingsScreen()
}This is the Kotlin form of SwiftUI View.sheet(isPresented:onDismiss:content:): SwiftUI documentation. In Swift it reads:
nonisolated func sheet<Content>(isPresented: Binding<Bool>, onDismiss: (() -> Void)? = nil, @ContentBuilder content: @escaping () -> Content) -> some View where Content : ViewTopics
Overloads
fun Modifier.sheet(isPresented: Boolean, onIsPresentedChange: (Boolean) -> Unit, content: @Composable () -> Unit): Modifier