is there a way to call top-level functions without having the specify the file they are located in?
instead of ``MyLibraryUtilsKt.foo()` , I want to call it as
is translated into an Objective-C class method, where the class is the filename. The generated Objective-C header for the the above example looks something like this:
is translated to a class method, it must be called via the class. (It only looks like it gets called via the file name... that's because the file name is used as the class name).
d
Daniel Seither
04/18/2024, 12:59 PM
In Objective-C, there’s no such thing as a top-level function, which is why it isn’t possible for Kotlin to expose them as such.
It’s something that I’m attempting/attempted to do by creating a “wrapper” framework for our UIKit (with Compose Multiplatform) im working on for a client.
https://github.com/BotStacks/mobile-sdk/pull/49
Just trying to make the xcframework bundle properly now