03/30/2018, 1:19 PM
For iOS I have an open Kotlin class that inherits from UIViewController. This class is meant to be the base of my UIViewController hierarchy, adding various properties used for view controller management of subclasses. To my surprise, I ran into this compilation error:
non-final Kotlin subclasses of Objective-C classes are not yet supported
If I understand this error correctly, I cannot create my intermediate UIViewController subclass in Kotlin. Will a fix for this be addressed soon? I'm trying to imagine if a workaround is possible.


03/30/2018, 2:07 PM
We have no specific plans on removing this limitation.


03/30/2018, 2:10 PM
Okay, thanks. I think it should be made clear somewhere that this limitation exists for the time being. I know Kotlin/Native is still pre-release, but it would help to have some of these gotchas listed. It is a important one when making decisions about how to design a framework architecture or in which language to build it in (Kotlin or the Native one).
I'll have to build out my front end in Swift as a result.