Thread
#multiplatform
    Mikołaj Karwowski

    Mikołaj Karwowski

    2 years ago
    When using data class in iOS, it's fields are renamed to component1, component2 etc Is there a fix for that?
    b

    basher

    2 years ago
    Its fields should still be there. componentN methods are the methods that are generated under the hood that make destructuring work in Kotlin
    Mikołaj Karwowski

    Mikołaj Karwowski

    2 years ago
    🤦‍♂️ 🤦‍♀️ 🤦 Honestly, You helped me a ton. Friday night got me. It works indeed, xcode suggested me the list of component fields and i just assumed my fields aren't there. Even looked at generated files etc but... They were. If i scrolled. Aaaaanyway... Thank You so much! 🎉
    b

    basher

    2 years ago
    No prob!