Part 1 - State Drive Nagiation: Overview

Intro What triggered the writing of this post were two things: 1. Prior Experience with State Machine Weโ€™ve been using state machine for the past few years to simplify a complex onboarding flow. The complexity of our feature rises from: having too many conditions that determine the correct state having the conditions scattered. Some conditions are known at the time of app launch, some are known at the time of onboarding flow commencing, but some others are only known after user identifies their device to us....

December 3, 2025 ยท 5 min

Part 2 - State Driven Navigation: Tutorial

๐Ÿ’ก Read Part 1 first to understand the concept. This post shows you exactly how to implement it. What Weโ€™re Building A simple 3-screen onboarding flow: Account Loader Screen โ†’ Loads the userโ€™s account in a loader screen Welcome Screen โ†’ user taps โ€œGet Startedโ€ Device Identification Screen โ†’ user enters their devices CMMac Letโ€™s build this with state-driven navigation, step by step. 1 - States States represent every screen your user can be on:...

December 2, 2025 ยท 4 min