moves preferredColorScheme to App level.
This commit is contained in:
parent
d8c5d3719c
commit
0904ff519f
|
@ -79,6 +79,7 @@ struct MainApp: App {
|
||||||
.frame(width: 500)
|
.frame(width: 500)
|
||||||
.navigationTitle("Preferences")
|
.navigationTitle("Preferences")
|
||||||
.environmentObject(defaults)
|
.environmentObject(defaults)
|
||||||
|
.preferredColorScheme(AppDefaults.userInterfaceColorScheme)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -82,7 +82,6 @@ struct MacPreferencesView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.preferredColorScheme(AppDefaults.userInterfaceColorScheme)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue