Adrian Witaszak
01/16/2023, 9:02 AMcommonMain using the Jetbrains Compose. Do you have any recommendations for using Ballast in this use case? Expect/Actuals for ViewModels?Casey Brooks
01/16/2023, 3:11 PMBasicViewModel and scope it to rememberCoroutineScope(), and keep it all in common code. The Compose desktop snippet is how you’d set it up. You’ll probably need to keep the EventHandler for each VM platform-specific, either with DI or expect/actual.
More generally, best practices for using Ballast on iOS is a bit of an open question, since I changed teams at work before we could get the iOS app migrated to KMM. There’s a discussion thread on the repo if you’ve got thoughts on how you think it should be handled, or if you notice any issues with the approach outlined above.Adrian Witaszak
01/16/2023, 3:13 PMAdrian Witaszak
01/16/2023, 3:15 PMCasey Brooks
01/16/2023, 3:17 PMAdrian Witaszak
01/16/2023, 6:13 PMCasey Brooks
01/16/2023, 6:20 PMAdrian Witaszak
01/16/2023, 6:21 PMAdrian Witaszak
01/16/2023, 6:22 PM