Is there any rhyme or reason to when inline classe...
# multiplatform
n
Is there any rhyme or reason to when inline classes are mapped to their underlying type in objective-c versus being mapped to id? For context, we’re trying to use an inline class as a non-null property in another DTO This line in the interop doc seems to suggest it’s at least sometimes possible to represent as the underlying type
• inline classes (arguments are mapped as either underlying primitive type or
id
)
However, any implementation I’ve tried seems to result in a type of
id
being exposed in the XCFramework
p
I think it was somehow related to generics.
Our guidelines prohibit the usages of value classes in public API