From 0bd4301df2bb57587fed2704d3788546105b77a3 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 28 Jun 2020 21:17:00 -0500 Subject: [PATCH] Add environment object to previews so that they work. --- Multiplatform/Shared/SceneNavigationView.swift | 1 + Multiplatform/Shared/Sidebar/SidebarView.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/Multiplatform/Shared/SceneNavigationView.swift b/Multiplatform/Shared/SceneNavigationView.swift index 5205e3063..40f004bd7 100644 --- a/Multiplatform/Shared/SceneNavigationView.swift +++ b/Multiplatform/Shared/SceneNavigationView.swift @@ -35,5 +35,6 @@ struct SceneNavigationView: View { struct NavigationView_Previews: PreviewProvider { static var previews: some View { SceneNavigationView() + .environmentObject(SceneModel()) } } diff --git a/Multiplatform/Shared/Sidebar/SidebarView.swift b/Multiplatform/Shared/Sidebar/SidebarView.swift index f24f60d8c..bbee7b717 100644 --- a/Multiplatform/Shared/Sidebar/SidebarView.swift +++ b/Multiplatform/Shared/Sidebar/SidebarView.swift @@ -37,5 +37,6 @@ struct SidebarView: View { struct SidebarView_Previews: PreviewProvider { static var previews: some View { SidebarView() + .environmentObject(SceneModel()) } }