Add environment object to previews so that they work.
This commit is contained in:
parent
c40b7d8c05
commit
0bd4301df2
|
@ -35,5 +35,6 @@ struct SceneNavigationView: View {
|
|||
struct NavigationView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
SceneNavigationView()
|
||||
.environmentObject(SceneModel())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,5 +37,6 @@ struct SidebarView: View {
|
|||
struct SidebarView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
SidebarView()
|
||||
.environmentObject(SceneModel())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue