Hi! I am using Kotlin/Native to develop multiplatf...
# kotlin-native
m
Hi! I am using Kotlin/Native to develop multiplatform projects including iOS through appcode. I was wondering how do you use storyboard to have connection outlets to Kotlin files? With XCode and Swift, we can just use control+drag thingy. But, XCode does not do that for Kotlin files. Yet, the default project by appcode for Kotlin/Native for iOS already has outlet connections to Kotlin files. I was wondering how could we add more objects and have outlets for them too. Of course, not using storyboard is an option but that sample project actually does use storyboard!
v
The only way is to manually edit the storyboard's XML in order to add the connection to the outlet.
s
@Vyacheslav Karpukhin [JB] Is that safe to do? That seems like a really bad way to go about doing it.
m
Also, when we edit the xml files to add outlets, we need to provide an id attribute to the outlet. XCode assigns them for us normally. But when we are adding then manually, should we randomly assign a string to id?
o
Currently, it seems easier to use Objective-C/Swift for UI design, and call Kotlin from there