-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedPR contribution is appreciatedPR contribution is appreciated
Description
Bug Report
Description
The API is not working correctly in OpenSwiftUI compared to SwiftUI.
Reproduction Code
struct ContentView: View {
var body: some View {
Color.red
.safeAreaPadding(.init(top: 10, leading: 20, bottom: 30, trailing: 40))
}
}Expected Behavior
Should apply safe area padding with the specified EdgeInsets values (top: 10, leading: 20, bottom: 30, trailing: 40).
Actual Behavior
The safe area padding is not applied correctly in OpenSwiftUI.
Screenshots
- SwiftUI
- OpenSwiftUI:
Change the Color.clear to blue and green to better reflect it
Environment
- OpenSwiftUI version: 9a7abef
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedPR contribution is appreciatedPR contribution is appreciated