Fix preview

This commit is contained in:
世界 committed 2023-09-20 21:17:05 +08:00
1 parent 9dc7713bd0
commit 390e063f20
13 files changed
+150 -80

No files matched your search

+8
View File
@@ -13,6 +13,14 @@ struct MainView: View {
@State private var alert: Alert?
var body: some View {
if ApplicationLibrary.inPreview {
body1.preferredColorScheme(.dark)
} else {
body1
}
}
var body1: some View {
TabView(selection: $selection) {
ForEach(NavigationPage.allCases, id: \.self) { page in
NavigationStackCompat {