import SwiftUI
struct Temp: View {
var body: some View {
Text("yellow")
.background(Color("yellow"))
}
}
#Preview {
Temp()
}
Things like this cannot work well:
Since it is allowed to change the color by giving a string that indicates the name:
and also from other project I have found that it can correctly work:
so I am confused.....
Selecting any option will automatically load the page