Hello all! I am currently leveraging KMP as a back...
# multiplatform
b
Hello all! I am currently leveraging KMP as a backbone data library that I share between my native iOS and Android implementations. With Swift 6's latest change to a strict concurrency model, I'm wondering if there is anything we can do on the KMP side to mark my data classes as Sendable. I'm not sure if it's because my data classes are being translated to ObjC and then bridged to Swift, but Swift 6 doesn't think that my classes are by default. This surprises me since they are simple data classes with only immutable val's and primative values (String, Float, etc.). Anyone have any wisdom or insight they can share in this area?
f
use preconcurrency with your import but it doesn’t solve everything. Or keep your project app on swift 5.x and avoid swift 6.x
p
Hi Bob, I will ask the team for you. This info is as much as I have for you right now: https://github.com/kotlin-hands-on/kotlin-swift-interopedia/blob/main/docs/classesandinterfaces/Data%20classes.md
b
Thank you both for your responses!
I'll dig in here
Any luck with the team @Pamela Hill? Just curious about how long it takes to respond to these kinds of queries.
p
I'm afraid it's not good news - no Swift 6 features yet!
b
Thanks for asking! I look forward to those features eventually
p
Me too 🙂