mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 02:52:39 -04:00
Change NavigationView to NavigationStack
This commit is contained in:
parent
b4d8612820
commit
a640163a2d
@ -203,7 +203,7 @@ private struct CompactView: View {
|
||||
case .library:
|
||||
Library(dismiss: dismiss)
|
||||
case .settings:
|
||||
NavigationView {
|
||||
NavigationStack {
|
||||
Settings().toolbar {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
Button {
|
||||
|
@ -28,7 +28,7 @@ struct SheetContent<Content: View>: View {
|
||||
#if os(macOS)
|
||||
content
|
||||
#elseif os(iOS)
|
||||
NavigationView {
|
||||
NavigationStack {
|
||||
content.toolbar {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
Button {
|
||||
|
@ -69,7 +69,7 @@ struct BookmarkButton: View {
|
||||
}
|
||||
.help("bookmark_button.show.help".localized)
|
||||
.popover(isPresented: $isShowingPopOver) {
|
||||
NavigationView {
|
||||
NavigationStack {
|
||||
Bookmarks().navigationBarTitleDisplayMode(.inline).toolbar {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
Button {
|
||||
|
@ -43,7 +43,7 @@ struct OutlineButton: View {
|
||||
.disabled(browser.outlineItems.isEmpty)
|
||||
.help("outline_button.outline.help".localized)
|
||||
.popover(isPresented: $isShowingOutline) {
|
||||
NavigationView {
|
||||
NavigationStack {
|
||||
Group {
|
||||
if browser.outlineItemTree.isEmpty {
|
||||
Message(text: "outline_button.outline.empty.message".localized)
|
||||
|
@ -54,7 +54,7 @@ struct TabsManagerButton: View {
|
||||
.sheet(item: $presentedSheet) { presentedSheet in
|
||||
switch presentedSheet {
|
||||
case .tabsManager:
|
||||
NavigationView {
|
||||
NavigationStack {
|
||||
TabManager().toolbar {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
Button {
|
||||
|
@ -158,6 +158,6 @@ private struct Dependency: Identifiable {
|
||||
#if os(macOS)
|
||||
TabView { About() }
|
||||
#elseif os(iOS)
|
||||
NavigationView { About() }
|
||||
NavigationStack { About() }
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user