Skip to content

Commit

Permalink
[DroidKaigi#789] Use NavigationStack
Browse files Browse the repository at this point in the history
  • Loading branch information
coffmark committed Sep 29, 2022
1 parent 2bed7dd commit 27c20b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions app-ios/Sources/MapFeature/MapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@ public struct MapView: View {

public var body: some View {
WithViewStore(store) { viewStore in
NavigationView {
NavigationStack {
ZStack {
AssetColors.background.swiftUIColor
Image(asset: Assets.floorMap)
.resizable()
.scaledToFit()
.padding(14)
.navigationTitle(StringsKt.shared.title_map.localized())
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem(placement: .bottomBar) {
Button(
Expand All @@ -55,8 +53,9 @@ public struct MapView: View {
}
}
}
.navigationTitle(StringsKt.shared.title_map.localized())
.navigationBarTitleDisplayMode(.inline)
}
.navigationViewStyle(.stack)
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions app-ios/Sources/TimetableFeature/TimetableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public struct TimetableView: View {

public var body: some View {
WithViewStore(store) { viewStore in
NavigationView {
NavigationStack {
ZStack(alignment: .top) {

if viewStore.state.showSheet {
Expand Down Expand Up @@ -192,7 +192,6 @@ public struct TimetableView: View {
}
.navigationBarTitleDisplayMode(.inline)
}
.navigationViewStyle(.stack)
}
}
}
Expand Down

0 comments on commit 27c20b9

Please sign in to comment.