macOS: scheme doesn't need to be state
parent
1acb1715c3
commit
2b4d89e11f
|
|
@ -44,7 +44,7 @@ struct CommandPaletteView: View {
|
|||
}
|
||||
|
||||
var body: some View {
|
||||
@State var scheme: ColorScheme = if OSColor(backgroundColor).isLightColor {
|
||||
let scheme: ColorScheme = if OSColor(backgroundColor).isLightColor {
|
||||
.light
|
||||
} else {
|
||||
.dark
|
||||
|
|
|
|||
Loading…
Reference in New Issue