mohamed rejeb
05/24/2023, 6:44 AMmohamed rejeb
05/24/2023, 7:10 AMNon-final Kotlin subclasses of Objective-C classes are not yet supported
Which is a limitation from Kotlin/Native so K/N needs to support Non-final Kotlin subclasses of Objective-C classes before we can have and abstract ComposeUIViewController
classDima Avdeev
05/24/2023, 8:58 AMmohamed rejeb
05/24/2023, 9:03 AMUIAdaptivePresentationControllerDelegateProtocol
to get notified when the sheet is dismissed.Alexander Zhirkevich
05/24/2023, 9:05 AMLocalUIViewController.current.presentationController?.setDelegate()
suits your needs?mohamed rejeb
05/24/2023, 9:52 AMpresentationController?.setDelegate()
before but it doesn't work even setting transitioningDelegate
doesn't work. I saw similar questions from iOS developers and the problem is that these methods are called too late, they needs to be called from the constructor of the UIViewController.mohamed rejeb
05/24/2023, 10:08 AMComposeUIViewController
inside an empty UIViewController
and it works fine, I can implement the delegate or pass it using presentationController?.setDelegate()