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
@@ -14,6 +14,14 @@ public struct MainView: View {
public init() {}
public var body: some View {
if ApplicationLibrary.inPreview {
body1.frame(width: 1280, height: 750, alignment: .topLeading)
} else {
body1
}
}
private var body1: some View {
NavigationSplitView {
SidebarView()
} detail: {