Skip to content

GeometryReader + safeAreaIssue issue #474

Description

@Kyle-Ye

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))
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: layoutLayout, geometry, safe area, alignment, stacks, or sizing.contrib: help wantedPR contribution is appreciated.type: bugSomething is not working correctly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions