Does multiplatform not support default parmeters i...
# multiplatform
x
Does multiplatform not support default parmeters in iOS? Kotlin:
Copy code
class MyClass(val myParam: String = "default string")
{
    fun printStuff()
    {
        println(myParam)
    }
}
iOS:
Copy code
let myClass = MyClass()    //Compiler error: init() is unavailable
đźš« 1
b
Obj-C doesn’t have that language feature
Best they could do is generate 2 methods (one with and without the arg)
Looks like they're not doing that though :)
x
Ok, thank you