
The Modern Mobile App Architecture Baseline
Modern mobile architecture is a sustainability question, not a style preference — declarative UI, unidirectional state, modular features, and a first-class data layer are the baseline a multi-year codebase actually depends on.
TL;DR: The architecture conversation for a modern mobile app is no longer a coding-style preference; it is what decides whether the codebase can sustain feature flags, staged rollout, parallel feature teams, and a multi-year lifespan. Model-View-Controller with storyboards on iOS and Model-View-Controller with XML layouts on Android produced apps that worked but became harder to scale across teams, releases, or platform updates. The modern baseline is declarative UI — SwiftUI on Apple platforms and Jetpack Compose on Android — backed by unidirectional data flow, structured state management, modular feature ownership, and a first-class data layer that owns caching, offline behavior, secure storage, and backend coupling. The CTO who can read a vendor's architecture proposal against that baseline is the CTO who avoids the next three years of foundational rework.
Why the architecture conversation moved
The architecture question used to be a developer-room conversation. It was where engineers chose Model-View-Controller or Model-View-ViewModel, where they argued about storyboards versus programmatic UI on iOS, where they picked an XML layout convention on Android, and where they settled on a folder structure. Those decisions rarely needed to reach the executive review. The app shipped, the team maintained it, and the next feature went in.
That conversation stopped working as soon as the operational shape of the mobile product changed. The codebase that used to be one team's domain became the surface where three or four teams ship in parallel. The release that used to be an occasional event became a continuous motion of feature flags and staged rollouts. In an illustrative case, the product that used to live for two years on a single major platform version had to survive five years across multiple Apple and Google operating-system updates, each of which deprecated something and introduced something. In the same illustrative case, the team that used to be all on one floor became three squads in three time zones with overlapping work areas.
A codebase whose state lived in view controllers, whose features were organized by folder rather than by module boundary, and whose data layer was a scattering of network calls inside screens could not absorb that operational change. It built. It shipped. It maintained itself the way the old codebase maintained itself, which is to say it accumulated friction every release until the leadership team noticed that small features took far too long and large features were quietly avoided.
The architectural baseline today is the baseline that survives that operational pressure. It is not a style; it is a sustainability question. The CEO sees it as the cost of every new feature over time. The CTO sees it as the difference between an engineering organization that scales and an engineering organization that gets reorganized. The CMO sees it as whether the experiments the marketing team designs can actually ship.
Declarative UI as the direction for new UI work
The most visible part of the shift is the user-interface framework. As of Nov 2026, Apple describes SwiftUI as "designed to work alongside UIKit and AppKit, so you can adopt it incrementally in your existing apps," and Google presents Jetpack Compose as "Android's recommended modern toolkit for building native UI." The change is not cosmetic. Declarative UI describes what the screen should look like as a function of state, rather than scripting how to mutate views over time. The view is a derivation; the source of truth is the state.
The practical consequence is that user-interface behavior becomes testable, previewable, and predictable in ways that the previous generation of frameworks struggled to deliver. A view is meant to be derived from the data it receives. Jetpack Compose's documentation says that, in general, all composable functions must be written to be fast, idempotent, and free of side effects; when that discipline holds, the same data renders the same view. A hidden flag that a fourth method on a view controller mutates out of the next engineer's sight, or Android XML layout state that diverges from the model the activity holds, is harder to introduce when the view is derived from state. The screen and the state are wired together in one direction, and that wiring is the source of the reliability.
The honest qualifier is that declarative frameworks are still maturing in places, that mixed codebases are common, and that migration is gradual rather than a flag-day. Apple and Google both document incremental adoption, and a large enterprise app does not need to throw away its UIKit screens or its existing Android View hierarchy in a single release. New screens are built declaratively; old screens migrate when the cost of staying on the legacy stack exceeds the cost of moving. UIKit and SwiftUI interoperate on Apple platforms. Compose and the legacy View system interoperate on Android. For a large codebase the transition can be a long, multi-phase effort, and the vendor proposal that promises a clean-slate rewrite to the new framework in one cycle is the proposal that has not seen a real enterprise codebase recently.
What the CTO is reading for in an architecture proposal is whether the new code is declarative by default, whether the legacy stack is acknowledged as a coexistence problem, and whether the migration plan is honest about its pace.
State management: unidirectional flow as the modern default
The state-management discussion is where vendor proposals can divide into the credible and the underspecified. The principle that matters more than the brand is unidirectional data flow. Data moves in one direction — from a store or a view model into the view, and from view events back into the store as actions or intents. The view does not mutate the model directly. The view does not hold mutable state that is also held somewhere else. The view is downstream of the state, always.
The names attached to that principle vary by platform and by team. One framing is Model-View-ViewModel with a reactive observation layer. Redux-style stores are common in cross-platform codebases. The Composable Architecture is a popular Apple-platform variant. Model-View-Intent is a popular Android-platform variant. Each comes with its own community, its own conventions, and its own evangelists. The right answer for the CTO is not to pick a winner from the brand list. The right answer is to confirm that the principle is honored — one direction of data flow, state owned in dedicated stores or view models, side effects isolated, the view as a function of state — and to let the team pick the specific shape that fits their language and their tooling.
The reason this matters reaches outside the engineering room. Predictable state is what makes feature flags safe. A feature flag wraps a behavior change behind a runtime toggle; if state is scattered across ten places, the flag has to be wired into ten places to actually flip the behavior, and the cost of that wiring is one reason feature flags can stall in legacy codebases. Predictable state is what makes A/B testing safe. A test variant is a different code path that the user is routed through; if state is consistent, the routing is a small decision near the top of the rendering tree, and the test is reliable. Predictable state is what makes staged rollout safe. A new screen is shipped behind a flag, exposed to a share of users (ten percent, for example), monitored, and either rolled out further or rolled back; the rollback is a state-level decision, not a re-submission to the store.
The architecture article is the prerequisite for the release pipeline article, even though the two are described separately. A team without unidirectional state finds feature flags harder to wire safely. A team that cannot run feature flags still has store-level staged rollout for app updates — Google Play's staged rollouts, which release an update to a percentage of users that the developer can increase over time, and App Store Connect's phased release, which releases an update over seven days to a random sample of users with automatic updates on eligible devices (as of Nov 2026) — but loses flag-level control over who sees a change inside the app. A team without that flag-level control has fewer safe ways to run experiments. The CMO depends on those experiments. The CEO depends on the CMO's ability to learn. The architecture decision and the leadership team's ability to learn are the same decision under two names.
Modularity: features as units, not folders
The modular question is the second place where vendor proposals divide. A monolithic mobile codebase — one application target on iOS, one application module on Android — works until it does not. Build times grow with the code. Ownership blurs because everything imports everything. Dependencies leak because the language and the build system permit them. Parallel feature work becomes a merge problem because two teams touch the same handful of central files constantly.
The modern baseline organizes features as modules with clear public surfaces. On Apple platforms that can mean Swift Package Manager modules — one feature per package or per small set of packages, with explicit public interfaces and explicit dependency declarations. On Android that can mean Gradle modules with the same discipline — one feature per module, public application programming interfaces declared, dependencies between features explicit and minimized. On cross-platform stacks the same discipline applies through workspace or package boundaries.
The principle, not the tool, is what matters. A feature is a unit of work the team can ship, test, and own independently of other features. A feature has a public surface that other parts of the application use, and an internal implementation that other parts cannot reach into. A new feature is built as a new module, not as new files in the existing screens directory. A retired feature is removed by removing a module, not by hunting through ten central files for the lines that referenced it.
Modularity is what makes a multi-team codebase a multi-team codebase, rather than a contested monorepo of view controllers. The CTO who reviews a proposal and sees "we will reorganize folders by feature" without a build-system commitment to module boundaries is reading a proposal that has not understood the question. Folder reorganization without enforced boundaries is the same monolith with new names.
The data layer is a first-class architectural concern
The data layer used to be implicit. Screens made network calls. Responses were parsed in the same place they were used. Caching happened where it happened, usually behind a static variable or a singleton that became a debugging surface later. Offline behavior was added when it was demanded and grafted onto code that did not anticipate it.
The modern baseline treats the data layer as a deliberate architectural concern. Caching strategy is decided at the architecture level — what is cached, for how long, under what eviction rule, against what coherence requirement. Offline-first behavior is decided as a posture, not as a per-screen retrofit. Conflict resolution — what happens when the device made a local change that the server later disagrees with — is decided once, applied consistently. Network resilience — timeouts, retries with backoff, circuit breakers, graceful degradation — lives in the data layer rather than scattered through screens.
A backend-for-frontend pattern is a frequent piece of this baseline. The mobile client talks to one backend-for-frontend service that aggregates the underlying microservices, shapes the responses for the mobile surface, and isolates the client from microservice churn. The mobile release cycle is no longer coupled to every service team's deployment schedule. The mobile client is no longer the place where ten service contracts are stitched together at runtime. The backend-for-frontend is the contract the mobile team owns with the rest of the organization.
Authentication, secure storage, biometric gating, and consent persistence belong to the data layer. They are not user-interface decisions. A screen that asks for biometric confirmation is presenting a flow whose authority lives in the data layer; a token stored in secure storage is a data-layer responsibility; a consent record persisted across launches is a data-layer artifact. When the proposal puts those concerns inside screens, the proposal is treating cross-cutting concerns as feature work, and the cost compounds.
Reading a vendor's architecture proposal
The CTO who is reviewing a vendor or in-house architecture proposal is reading for a short list of named commitments. The table below is the comparison frame.
| Architectural commitment | What a credible proposal names | The red flag in an underspecified one |
|---|---|---|
| User-interface framework | Declarative UI (SwiftUI on Apple platforms, Jetpack Compose on Android) as the default for new code, with the legacy stack acknowledged | "We use the latest framework" without naming the legacy coexistence plan |
| State management | A named approach honoring unidirectional flow, with state ownership and side-effect handling described | No state-management commitment, or only a brand name without a principle |
| Modularity | Feature modules with public surfaces, enforced by the build system (Swift Package Manager or Gradle modules) | Folder reorganization by feature without build-system module boundaries |
| Data layer | Explicit caching, offline posture, conflict resolution, network resilience, and a backend-for-frontend stance | Per-screen network calls, ad hoc caching, no offline strategy named |
| Identity and secure storage | Platform-native secure storage and biometric gating in the data layer | Tokens in shared preferences or local storage with no clear handling plan |
| Legacy coexistence | Named migration pace and interoperability strategy | A clean-slate rewrite promise with no migration plan |
| Acceptance test | A worked example of adding a new feature without touching unrelated modules | An answer that cannot describe how a new feature is added without cross-cutting code changes |
The acceptance test is a useful screening question. Ask the proposer to walk through how a new feature is added to the application. A credible answer names a new module, a new state store or view model, a new declarative UI surface, and a data-layer integration that respects the existing patterns. An incoherent answer touches ten files across unrelated parts of the application and explains that "that's just how the codebase is." If the proposer cannot describe the path of a new feature in a short walkthrough (two minutes is a rule of thumb, not a standard) without sounding apologetic, the architecture has not actually been designed; it has been described.
The CTO position, stated as a baseline
Modern mobile architecture is not a coding-style choice the engineering team makes after the contract is signed. It is a sustainability decision the CTO makes before the contract is signed, and it is the decision that determines whether the codebase shipping today is the codebase still earning its keep three years from now.
The baseline is named in five commitments. Declarative UI as the default for new code, with the legacy stack treated as a coexistence problem. Unidirectional state flow, expressed in whatever named pattern the team and the platform support, with the principle honored regardless of the brand. Feature modules with build-system-enforced boundaries, not folder reorganization. A data layer that owns caching, offline posture, conflict resolution, network resilience, identity, and secure storage as a deliberate design rather than per-screen retrofit. And an honest migration plan for whatever legacy code the team already has.
A proposal that names those five commitments and can describe the path of a new feature against them is a proposal the CTO can review with confidence. A proposal that uses the framework name and skips the commitments is a proposal that has not been written for the question the CTO is actually asking. The codebase the organization will be maintaining for the next several years is being decided in this conversation, and the conversation is worth conducting at the altitude the answer deserves.