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()) } }