Skip to content

Commit bd10495

Browse files
authored
Merge pull request #695 from Esri/df/navStackUpgrades
Remove remaining `NavigationView`s
2 parents 6a4d331 + 37db538 commit bd10495

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

AuthenticationExample/AuthenticationExample/HomeView.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct HomeView: View {
2525

2626
var body: some View {
2727
if let portal = portal {
28-
NavigationView {
28+
NavigationStack {
2929
WebMapsView(portal: portal)
3030
.toolbar {
3131
ToolbarItem(placement: .navigationBarTrailing) {
@@ -42,7 +42,6 @@ struct HomeView: View {
4242
}
4343
}
4444
}
45-
.navigationViewStyle(.stack)
4645
} else {
4746
SignInView(portal: $portal)
4847
}

Examples/ExamplesApp/Examples.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ struct Examples: View {
2323
]
2424

2525
var body: some View {
26-
NavigationView {
26+
NavigationStack {
2727
List(lists) { (list) in
2828
NavigationLink(list.name, destination: list)
2929
}
3030
.navigationTitle("Toolkit Examples")
3131
.navigationBarTitleDisplayMode(.inline)
3232
}
33-
.navigationViewStyle(.stack)
3433
}
3534
}
3635

Test Runner/Test Runner/Tests.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ import SwiftUI
1616

1717
struct Tests: View {
1818
var body: some View {
19-
NavigationView {
19+
NavigationStack {
2020
List {
2121
NavigationLink("Basemap Gallery Tests", destination: BasemapGalleryTestView())
2222
NavigationLink("Bookmarks Tests", destination: BookmarksTestViews())
2323
NavigationLink("Feature Form Tests", destination: FeatureFormTestView())
2424
NavigationLink("Floor Filter Tests", destination: FloorFilterTestView())
2525
}
2626
}
27-
.navigationViewStyle(.stack)
2827
}
2928
}

0 commit comments

Comments
 (0)