Dmitry Stakhov
08/20/2026, 5:32 AM// Kootlin
interface MyKotlinController {
fun handle()
}
// Swift
class MySwiftController: KotlinBase, MyKotlinController {
func handle() {
}
}
let controller = MySwiftController()
I have the compilation error:
'init()' is unavailable
Does anyone have ideas?Rick Clephas
08/20/2026, 6:41 AMArtem Olkov
08/20/2026, 7:45 AMDmitry Stakhov
08/20/2026, 1:28 PM@objcMembers final class MySwiftController: SwiftBase, MyKotlinController {
...
}
Implicit initializer 'init()' with Objective-C selector 'init' conflicts with initializer 'init()' from superclass 'KotlinBase' with the same Objective-C selectorArtem Olkov
08/24/2026, 9:46 AM@objcMembers ? If there is a suggestion to do that somewhere in our docs I would love to remove that.
I've just added the example from the docs here - github.com/Kotlin/swift-export-sample/…/inheritance_demo
It works both in release and debug modes.Dmitry Stakhov
08/24/2026, 11:25 AM