Menu

NavigationStack

Skip support for SwiftUI.NavigationStack on Android. Consult the SkipUI module for a complete list of supported SwiftUI.

The following example screens and source code is from SkipUI’s Showcase sample app NavigationStackPlayground.swift

Android screenshot for NavigationStack component (light mode) iPhone screenshot for NavigationStack component (light mode) iPhone screenshot for NavigationStack component (dark mode) Android screenshot for NavigationStack component (dark mode)
import SwiftUI

struct NavigationStackPlayground: View {
    @Environment(\.dismiss) var dismiss

    var body: some View {
        Button("Pop") {
            dismiss()
        }
        .toolbar {
            PlaygroundSourceLink(file: "NavigationStackPlayground.swift")
        }
    }
}