https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

darkmoon_uk

12/17/2018, 3:14 PM
I was expecting to be able to write iOS
UIViewController
in Kotlin and have it conform to a Kotlin interface (an MVP 'View contract'). This is critical to implement the MVP UI pattern. Attempting hits the error "Mixing Kotlin and Objective-C super-types is not supported". Very unexpected and critical limitation of Kotlin/iOS 😞 Any ideas if this is likely to change in the future? For now considering creating an inline-class wrapper to fake 'implement' the ViewContract. Others doing similar?
k

kpgalligan

12/17/2018, 7:34 PM
I think most people doing this now are writing view controllers in swift. You can implement protocols that ultimately correspond to view interfaces written in kotlin. It’s not much of a limitation for me for that reason