Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

findNavigator(_:)

A view modifier that maps SwiftUI's findNavigator.

iOS 17.0+macOS 26.0+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.findNavigator(isPresented: Boolean, onIsPresentedChange: (Boolean) -> Unit): Modifier

Overview

Modifier.findNavigator(isPresented = true, onIsPresentedChange = { value -> })

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

nonisolated func findNavigator(isPresented: Binding<Bool>) -> some View

Topics

Overloads

fun Modifier.findNavigator(isPresented: Boolean, onIsPresentedChange: (Boolean) -> Unit): Modifier
SwiftUI View.findNavigator(isPresented:)