Add preview support

This commit is contained in:
世界
2023-07-20 13:15:13 +08:00
parent fdbf50d875
commit 251f441a25
14 changed files with 135 additions and 59 deletions
@@ -7,7 +7,9 @@ public struct DashboardView: View {
public var body: some View {
viewBuilder {
if let profile = extensionProfile.wrappedValue {
if ApplicationLibrary.inPreview {
ActiveDashboardView()
} else if let profile = extensionProfile.wrappedValue {
ActiveDashboardView().environmentObject(profile)
} else {
FormView {