In the objective C framework that’s generated by k...
# kotlin-native
y
In the objective C framework that’s generated by konan, the classes have these
component
properties alongside the properly names properties. What are these?
o
could you please paste snippet with sample code
y
Copy code
-(NSArray<CMERoute *> *)component1 NS_SWIFT_NAME(component1());
-(NSArray<CMERoute *> *)component2 NS_SWIFT_NAME(component2());
These seem to be correlated with the properties of the kotlin class
Copy code
-(instancetype)initWithNow:(NSArray<CMERoute *> *)now later:(NSArray<CMERoute *> *)later
Copy code
@property (readonly) NSArray<CMERoute *> *now;
@property (readonly) NSArray<CMERoute *> *later;
r
Looks like the
componentN()
functions that data classes generate for destructuring declarations. See https://kotlinlang.org/docs/reference/multi-declarations.html
y
Ah thankyou
i was really curious about it