I am trying to set the screen's background color to pink however, when I use edgesIgnoringSageArea(.all)
it is being ignored and remains white.
Is this perhaps an Xcode 11 Beta 2 bug?
struct ContentView : View {
@State var sliderValue: Float = 0
var body: some View {
VStack {
Spacer()
HStack {
Image("lectric")
Text("Some Text").font(.largeTitle)
}
Slider(value: $sliderValue, from: 1, through: 100, by: 1)
Spacer()
}.padding(.horizontal, 50)
.background(Color.pink)
.edgesIgnoringSafeArea(.all)
}
}