So I have a composable with an embedded vertical s...
# compose-ios
t
So I have a composable with an embedded vertical scrollable column inside a native Android BottomSheet. I had to enable the nestedScroll with the rememberNestedScrollInteropConnection and it worked very well. Is there something similar implemented on the iOS side, for when I build it into an iOS sheet, so the scrolling in the interior scroll will not dismiss or resize the parent iOS VC?
To answer my own question, an ugly work-around:
Copy code
self.present(navigation, animated: true) {
                            navigation.presentationController?.presentedView?.gestureRecognizers?.first?.isEnabled = false
                        }
this turns off the ability to swipe the sheet away, allowing scrolling to occur within the sheet. And you can still tao outside to dismiss. The best we can do for now I think.
👍 1
d
Yeah, we have this problem for now. Are you using SwiftUI or UIKit on top of Compose?
t
I use both, but in this instance I am using the standard UIKit presentation to show the compose view in a medium bottom sheet.