


To listen for state changes we just consume an ObservableObject inside a View and the Combine/Flow communications and lifecycles are automatically managed for us. swift helper classes so we don’t have to worry about how things work under the hood. Orbit also provides us with a swift-gradle-plugin to generate. Orbit Multiplatform library – you can guess it by its name -, is already multiplatform-ready. Note: If you wonder why can’t we take advantage of JitPack service, there’s an issue about it. Until this PR is accepted and published, one option is to copy StateMachine.kt and add it to our project in the shared module. Tinder’s State Machine is not yet upgraded to be used as a multiplatform library, but luckily there’s a pull request (PR) with that implementation, which is quite simple actually. Common prerequisitesĪfter creating a new KMM project, we need to make sure we can use our FSM and MVI implementations. SwiftUI and Combine ( Publishers & Subscription).
