Mychael Koelfat
11/29/2022, 9:58 AMFunction doesn't have or inherit @Throws annotation and thus exceptions isn't propagated from Kotlin to Objective-C/Swift as NSError.
If I understand correctly, because Kotlin has no concept of checked exceptions, where Swift only has checked errors. Though I do not understand how I fix this, the documentation doesn't make that too clear for me. Does anyone know how to fix this?Hylke Bron
11/29/2022, 10:36 AM@Throws(Throwable::class)
(or another subclass of Throwable)
• Encapsulate the method call from swift with try catch
Using this method you are converting the uncecked nature of kotlin to the checked nature of swiftMychael Koelfat
11/29/2022, 11:00 AMkpgalligan
11/29/2022, 12:47 PM