I have a use case where I only need to pass an object through shared code. The object is created in platform specific code and only used in platform specific code, but in another layer.
The only solution I found was to create a wrapper object, which implements the expected class.
It’s really annoying to get an object for example Uri / NSUrl and to wrap it in another object, pass it through shared code without use until I finally need to unwrap it again for use.
I think this could often happen when using libraries in platform specific code like firebase, which are using types of the android or iOS SDK.
expect typealias CommonUrl
would be great, because in platform specific code we are already able to replace CommonUrl with Uri.