For the following example, the yellow background should ignore safeArea
struct GeometryReaderExample: View {
var body: some View {
GeometryReader { geometry in
VStack {
Color.blue
.frame(
width: geometry.size.width / 2,
height: geometry.size.height / 2
)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(Color.yellow.opacity(0.3))
}
}
}
For the following example, the yellow background should ignore safeArea