Join Slack
Powered by
hey, by any chance anyone knows how to pass suspen...
# ios
a
Antonis Radz
08/12/2024, 3:53 PM
hey, by any chance anyone knows how to pass suspend lambda on iOS swift side?
Copy code
suspend fun test(testSuspend: suspend () -> Unit) { testSuspend() }
getting error:
f
François
08/12/2024, 6:53 PM
You’re making borderline code for swift
François
08/12/2024, 6:53 PM
did you try to use SKIE?
François
08/12/2024, 6:57 PM
but I think you should try to avoid that, the bridge objc/swift doesn’t like this way.
👍 1
h
hfhbd
08/12/2024, 8:11 PM
Technically, you could implement the interface in swift and also add swift lambda support.
👍 1
Open in Slack
Previous
Next