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

Mikołaj Karwowski

01/31/2020, 4:05 PM
When using data class in iOS, it's fields are renamed to component1, component2 etc Is there a fix for that?
b

basher

01/31/2020, 4:08 PM
Its fields should still be there. componentN methods are the methods that are generated under the hood that make destructuring work in Kotlin
m

Mikołaj Karwowski

01/31/2020, 4:17 PM
🤦‍♂️ 🤦‍♀️ 🤦 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

01/31/2020, 4:21 PM
No prob!
4 Views