Wrong scrollView content position with custom sheet positions #78
-
Hey Lucas, awesome library! 🎉 I've noticed a strange behaviour with the scrollView (both the one implemented by you and the SwiftUI one) when i'm using custom sheet positions. Any idea what might be causing this? Maybe it's my implementation? scrollview.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello i would guess that you are using an enum something like this: enum CustomBottomSheetPosition: CGFloat, CaseIterable {
case middle = 0.5, top = 0.8
} As described in the documentation, the lowest value (in your case In your case the only thing you need to change is to either add another position at the height of e.g. 0.2 or disabling this behaviour altogether by adding If this doesn't work for you, please share your source code (only the custom BottomPosition enum and the .bottomSheet part) and I will reopen this. |
Beta Was this translation helpful? Give feedback.
Hello i would guess that you are using an enum something like this:
As described in the documentation, the lowest value (in your case
.middle
) gets the behaviour of the.bottom
position (hiding the main content).In your case the only thing you need to change is to either add another position at the height of e.g. 0.2 or disabling this behaviour altogether by adding
.noBottomPosition
to your options.If this doesn't work for you, please share your source code (only the custom BottomPosition enum and the .bottomSheet part) and I will reopen this.