LazyColumn with only 30 rows, inside a bottomsheet...
# compose-ios
a
LazyColumn with only 30 rows, inside a bottomsheet for example 🤔
t
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
I mean an iOS BottomSheet
For disabling the swipe to dismiss, you mean on the iOS BottomSheet itself? Can you point me to where you disabled that?
And, in your case, that was what’s fighting with the vertical scrolling with the nested component?
t
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
                                }
                            }
                        }