Live Workout Session Interaction Flow architecture diagram

About This Architecture

Live workout session interaction flow using MVVM with reactive state management across user actions, view controllers, and real-time data streams. User actions trigger dispatch through ViewControllers and ViewModels to a centralized LiveWorkoutSessionController, which orchestrates LiveActivity controls and queries Data Sources (time, pedometer, heart rate, location). The LiveWorkoutSessionStore publishes low-frequency and high-frequency state updates to separate ViewModels, which feed dumb Views that render Stats and Map pages without business logic. This architecture demonstrates clean separation of concerns: composition via factory, unidirectional data flow from user input through controllers to store, and reactive publication back to UI layers. Fork this diagram to customize for your app's specific data sources, add additional view pages, or document alternative state management patterns. The pattern scales well for complex fitness apps requiring real-time sensor integration and multi-page UI synchronization.

People also ask

How should I structure a live workout app with real-time sensor data and multiple UI pages using MVVM and Combine?

This diagram shows a complete MVVM flow where user actions dispatch through ViewControllers and ViewModels to a centralized LiveWorkoutSessionStore, which publishes state updates to separate Stats and Map ViewModels. Data Sources feed sensor streams (heart rate, pedometer, location) back to the Store, keeping Views dumb and reactive.

Live Workout Session Interaction Flow

AutointermediateiOSMVVMCombinereactive-programmingarchitecture-patternfitness-app
Domain: Software ArchitectureAudience: iOS engineers building reactive workout apps with MVVM and Combine
1 views0 favoritesPublic

Created by

July 29, 2026

Updated

August 9, 2026 at 5:10 AM

Type

sequence

Need a custom architecture diagram?

Describe your architecture in plain English and get a production-ready Draw.io diagram in seconds. Works for AWS, Azure, GCP, Kubernetes, and more.

Generate with AI

AI-generated. Verify before production use. Learn more

Report this diagram