Skip to content

Commit

Permalink
Fix #119 (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskmt authored Jun 26, 2023
1 parent c343f17 commit 6b14f27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ internal extension BottomSheetView {
// Add ZStack to pin header content and make main content transition correctly for iPad and Mac
ZStack(alignment: .top) {
// BottomSheet main content
if self.bottomSheetPosition.isBottom {
if self.bottomSheetPosition.isBottom && self.translation == 0 {
// In a bottom position the main content is hidden - add a Spacer to fill the height
Spacer(minLength: 0)
.frame(height: self.bottomPositionSpacerHeight)
} else {
// BottomSheet main content
self.main(with: geometry)
}

// BottomSheet header content
if self.headerContent != nil || self.configuration.isCloseButtonShown {
self.header(with: geometry)
Expand Down

0 comments on commit 6b14f27

Please sign in to comment.