Add environment object to previews so that they work.

This commit is contained in:
Maurice Parker 2020-06-28 21:17:00 -05:00
parent c40b7d8c05
commit 0bd4301df2
2 changed files with 2 additions and 0 deletions

View File

@ -35,5 +35,6 @@ struct SceneNavigationView: View {
struct NavigationView_Previews: PreviewProvider {
static var previews: some View {
SceneNavigationView()
.environmentObject(SceneModel())
}
}

View File

@ -37,5 +37,6 @@ struct SidebarView: View {
struct SidebarView_Previews: PreviewProvider {
static var previews: some View {
SidebarView()
.environmentObject(SceneModel())
}
}