Skip to content

Conversation

@Dark-Existed
Copy link
Contributor

FIx #511

Copy link
Collaborator

@Kyle-Ye Kyle-Ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix.

A little suggestion before merging is:

If there is existing test case, turn it on (or remove the withKnownIssue logic). Otherwise, add a new UI test case for InsetViewModifierUITests.swift to verify it.

struct ContentView: View {
    var body: some View {
        Color.red
            .safeAreaPadding(.init(top: 10, leading: 20, bottom: 30, trailing: 40))
    }
}

@Kyle-Ye Kyle-Ye merged commit eb59f17 into OpenSwiftUIProject:main Jan 25, 2026
5 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: safeAreaPadding API not working correctly

2 participants