Skip to content

Wrong scrollView content position with custom sheet positions #78

Answered by lucaszischka
grenos asked this question in Q&A
Discussion options

You must be logged in to vote

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 .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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lucaszischka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Thank You ❤️ For people who appreciate my work
2 participants
Converted from issue

This discussion was converted from issue #21 on June 26, 2022 20:38.