Hi guys I am using Compose multiplatform - Kotlin ...
# kotlin-native
s
Hi guys I am using Compose multiplatform - Kotlin 2.0.20 and XCode 16. In iOS 18, I need to use *`UIApplication.sharedApplication().open(_optionscompletionHandler:)`*but it is not available in
UIApplication
. In my Platform.ios.kt, I have this import
Platform.UIApplication
which is apparently built from ObjectiveC using Cinterop tool that supports calling ObjectiveC code from Kotlin. So basically Kotlin just provides the API that Apple has added to their iOS SDK. How to update the set of API from the latest iOS SDK? thanks a lot
t
Have you tried a dev version? Maybe the latest have updates to newest Apple APIs. https://github.com/JetBrains/kotlin?tab=readme-ov-file#using--dev-versions
d
s
It has quite some impact on the bindings and iOS, hope it can be addressed soon, thanks for the link @Darron Schall
t
I believe the API you are looking for is this one (don't forget to switch from Swift to Objective-C) and it should be accessible in Kotlin 2.0.20
116 Views