SwiftData ResultsObserver: A Practical Example (iOS 27)

You've got SwiftData models updating. Your SwiftUI views refresh automatically. But what about code outside views — like dashboard stores, analytics, or summary calculators?

iOS 27 solves this with ResultsObserver.

What's covered:

  • What ResultsObserver does (and why it matters)
  • Observing model changes outside SwiftUI views
  • Building a BudgetSummaryStore that reacts to data changes
  • Using withContinuousObservation for live updates
  • Calculating aggregates (totals, sums, remaining) automatically

Real example: Budget dashboard where total budget, amount spent, and remaining update live as the user adds or modifies expenses.

In partnership with
Fastlane alternative – CLI tools

Are you tired of Ruby and Fastlane installation issues? There's got to be a better way! Discover Codemagic open source CLI tools. It is not a drop-in replacement for all of what Fastlane does (screenshots for example), but we use it at Codemagic to build and publish iOS and Android apps, also versioning and device provisioning.

View on GitHub
© 2026 Mobile Signal. All rights reserved.
Made by
Stan
linkedin