Reputation: 17705
I have this simple view :
struct SplashscreenView: View {
var body: some View {
ZStack {
Color("primary").edgesIgnoringSafeArea(.all)
Text("Hello, World!")
}
}
}
The color primary
is defined in Assets.xcassets
:
But in my view, color is not displayed :
If i force with system's color, like Color.red, the color is correctly displayed.
Upvotes: 2
Views: 1275