Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

navigationDestination(_:)

A view modifier that maps SwiftUI's navigationDestination.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.navigationDestination(isPresented: Boolean, onIsPresentedChange: (Boolean) -> Unit, destination: @Composable () -> Unit): Modifier

Overview

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

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

nonisolated func navigationDestination<V>(isPresented: Binding<Bool>, @ContentBuilder destination: () -> V) -> some View where V : View

Topics

Overloads

fun Modifier.navigationDestination(isPresented: Boolean, onIsPresentedChange: (Boolean) -> Unit, destination: @Composable () -> Unit): Modifier
SwiftUI View.navigationDestination(isPresented:destination:)