hello guys, when it says room/~viewModel~/paging3....
# multiplatform
b
hello guys, when it says room/~viewModel~/paging3... is ready for multiplatform. Does that mean, they can be used in commonMain and that's all? how can we implement platform specific side. For example: how to get instance of viewModel in swiftUi or how to trigger load next page in pagination 3 and so on
m
Actually the term “multiplatform” in this context doesn’t mean much. It depends on which platforms you have configured in your project. As far as I know room only supports iOS and Android. (Correct me if I am wrong.) So, if you have configured only these two platforms, then you can use it in commonMain. Otherwise not.
b
room/viewModel/paging3... were just examples that was previously announced multiplatform support. so we have to rely on 3rd party libraries at the end.😕
here is ViewModel official docs which does not include any platform specific code. in iOS, How do we get instance of it? or how to observe uiState inside SwiftUi?