It seems like this only works when the shape or image is close to the edge of the screen. for example this works:
var body: some View {
VStack{
Spacer()
Color.yellow
.padding()
.background(Color.red, in: .rect(corners: .concentric))
.padding(20)
.frame(height: 300)
}
.ignoresSafeArea()
}
but this does not:
var body: some View {
VStack{
Color.yellow
.padding()
.background(Color.red, in: .rect(corners: .concentric))
.padding(20)
.frame(height: 300)
}
.ignoresSafeArea()
}
Is this the intended behavior or is this a bug?