Hello, I’m trying to create a class that implement...
# multiplatform
a
Hello, I’m trying to create a class that implements function type. Something like this
Copy code
class TestFunction: (String) -> String {
    
    override fun invoke(p1: String): String {
        return p1.reversed()
    }
}
After importing framework to xcode and calling this function it highlights “can’t be imported”. This is what was generated in .h file
Copy code
attribute((unavailable("can't be imported")))
attribute((swift_name("TestFunction")))
@interface MppLibTestFunction : NSObject
@end;
Is it supposed to work or currently unsupported?