-
I've been playing around with the library and noticed some strange behavior. I've added a simple view with some content var body: some View {
Color.red
.ignoresSafeArea(edges: [.top, .bottom])
.popupCloseButtonStyle(.none)
.popupInteractionStyle(.customizedSnap(percent: 0.5))
.popup(
isBarPresented: $coordinator.isBarPresented,
isPopupOpen: $coordinator.isPopupOpen,
onClose: { coordinator.onPopupClose?() },
popupContent: { Text("test") }
)
.popupBarCustomView(wantsDefaultHighlightGesture: false) {
VStack {
Text("line 1")
Text("line 2")
Text("line 3")
}
}
} and for some reason the hosting view adds quite a lot of vertical space around my content view. I've tried to ignore safe area in custom view .popupBarCustomView(wantsDefaultHighlightGesture: false) {
VStack(spacing: .zero) {
Text("line 1")
Text("line 2")
Text("line 3")
}
.ignoresSafeArea()
} but it seems that the hosting view size stays the same Do you think it's possible to remove these paddings without breaking the layout logic? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, Hmmm. Internally, I am using
It suddenly balloons to include the additional padding. Let me look into it. |
Beta Was this translation helpful? Give feedback.
I found a solution.
@dsk1306 I will create an issue from this discussion and commit the fix.