Closed Rheaparks closed 2 years ago
This ‚bug‘ comes down to this part in your example code:
case middle = 300
case bottom = 299.999
I can explain to you what happens:
.middle
position at the beginning..bottom
position
.middle
and .bottom
values are nearly the same you don’t see a different.bottom
position (see Documentation); to prevent this use the.noBottomPosition
option.This is everything as expected. If you change the .bottom
position value to something smaller (like 150), you will probably understand the behavior.
This has indeed nothing to do with the .swipeToDismiss
option, but with your values of the BottomSheetPostion
enum.
If it is still unclear to you, please read the README.MD again.
Hello,
As I was testing "swiping to dismiss" in the simulator I've found what I believe is a bug. Indeed, when I swipe the sheet the main content dismisses itself with an animation while the rest of the sheet stays in place.
The problem can be reproduced with the
.swipeToDismiss
option, as well as without it.Examples
With
swipeToDismiss
https://user-images.githubusercontent.com/73537538/159232791-4a3a02bf-b804-4e72-85c2-aa7f489310eb.mov
Without the option
https://user-images.githubusercontent.com/73537538/159233151-cfffd681-69f2-4f52-bb90-3cc4314285db.mov
Sample Code
This is mostly the Book Detail View example taken straight from the README.
Configuration
Xcode 13.3 iOS 15.4 iPhone 13 mini simulator