zsperske
07/15/2020, 3:17 PMinterface Database {
suspend fun updateEntry(foo: Foo) : Boolean
}
In order to implement this on iOS one option appears to be implementing a kotlin class in my iosMain that could use obj-c interop to achieve what I want. Is it also possible to feed a swift class that I've written (with obj-c headers) into my common code? Are there drawbacks to that?basher
07/15/2020, 3:24 PMKris Wong
07/15/2020, 3:29 PMzsperske
07/15/2020, 3:30 PMKris Wong
07/15/2020, 3:53 PMbasher
07/15/2020, 3:53 PMzsperske
07/15/2020, 3:54 PMoverride suspend fun addEvent(host: User, event: Event): Boolean {
return suspendCoroutine {
addEvent(it)
}
}
open fun addEvent(callback: Continuation<Boolean>) {
throw NotImplementedError("iOS project should implement this")
}