https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
t

tylerwilson

10/23/2023, 6:26 PM
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

Dima Avdeev

10/30/2023, 3:05 AM
Yeah, we have this problem for now. Are you using SwiftUI or UIKit on top of Compose?
t

tylerwilson

10/30/2023, 1:01 PM
I use both, but in this instance I am using the standard UIKit presentation to show the compose view in a medium bottom sheet.
4 Views