LazyColumn with only 30 rows, inside a bottomsheet for example 🤔
t
tylerwilson
05/20/2024, 6:30 PM
When you say BottomSheet, you mean a Compose BottomSheet or an iOS BottomSheet?
I had issues with a scrollable compose component inside an iOS bottomsheet, so I had to turn off the swipe to dismiss in the ios bottomsheet.
Otherwise, you have two competing vertical scrolls, one inside the other. On Android this is handled better with a nestedScroll modifier...
a
aj
05/20/2024, 11:58 PM
I mean an iOS BottomSheet
aj
05/21/2024, 12:03 AM
For disabling the swipe to dismiss, you mean on the iOS BottomSheet itself? Can you point me to where you disabled that?
aj
05/21/2024, 12:05 AM
And, in your case, that was what’s fighting with the vertical scrolling with the nested component?
t
tylerwilson
05/21/2024, 1:48 AM
I found this somewhere. which disables the pull to dismiss:
Copy code
self.present(vc, animated: true) {
if #available(iOS 16.0, *) {
if screenHeight > 736 {
vc.presentationController?.presentedView?.gestureRecognizers?.first?.isEnabled = false
}
}
}