Fix wrong navigation styles on iPadOS

This commit is contained in:
Shadowfacts 2020-12-20 14:09:18 -05:00
parent d8b1c4d9c6
commit f2b78d676f
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ struct PreferencesView: View {
.insetOrGroupedListStyle() .insetOrGroupedListStyle()
.navigationBarItems(trailing: doneButton) .navigationBarItems(trailing: doneButton)
} }
.navigationViewStyle(StackNavigationViewStyle())
.onDisappear { .onDisappear {
Preferences.save() Preferences.save()
} }

View File

@ -46,6 +46,7 @@ struct TableOfContentsView: View {
close(nil) close(nil)
})) }))
} }
.navigationViewStyle(StackNavigationViewStyle())
} }
} }