---
title: "Is SwiftData incompatible with MVVM? The standard answer betrays a deep misunderstanding of 3 key principles that drive SwiftUI’s architecture"
url: https://daily.dev/posts/is-swiftdata-incompatible-with-mvvm-the-standard-answer-betrays-a-deep-misunderstanding-of-3-key-pr-7ykb9dvzq
source_url: https://matteomanferdini.com/swiftdata-mvvm/
type: article
source: "Matteo Manferdini"
published: 2025-10-20T17:10:32.325Z
updated: 2025-10-20T17:10:53.385Z
tags: ["general-programming", "ios", "swift", "swiftui"]
reading_time: 13
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Is SwiftData incompatible with MVVM? The standard answer betrays a deep misunderstanding of 3 key principles that drive SwiftUI’s architecture

**[Matteo Manferdini](https://daily.dev/sources/matteomanferdini)** · 13 min read · 1 upvotes · 0 comments

## Summary

Explores how to properly implement MVVM architecture with SwiftData in SwiftUI apps by debunking three common misconceptions: that @Query properties are sources of truth, that accessing the shared model context is unique to @Query, and that @Query properties are passively notified of changes. Demonstrates how to create view models that work seamlessly with SwiftData by leveraging the DynamicProperty protocol and implementing custom property wrappers, eliminating boilerplate code while maintaining testability and separation of concerns.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://matteomanferdini.com/swiftdata-mvvm/>

## Similar posts on daily.dev

- [Why Dismissing View Models in SwiftUI is Stifling your App’s Maintainability and Testability \(And the Proven Principles for a Better Architecture\)](https://daily.dev/posts/why-dismissing-view-models-in-swiftui-is-stifling-your-app-s-maintainability-and-testability-and-th-nqz1dnx9x) · Matteo Manferdini · 0 upvotes · 0 comments
- [The Myth of the MV pattern: Why SwiftUI developers just reinvented MVC](https://daily.dev/posts/the-myth-of-the-mv-pattern-why-swiftui-developers-just-reinvented-mvc-ajka7v0jz) · Matteo Manferdini · 0 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#ios](https://daily.dev/tags/ios), [#swift](https://daily.dev/tags/swift), [#swiftui](https://daily.dev/tags/swiftui)

[View this post on daily.dev](https://daily.dev/posts/is-swiftdata-incompatible-with-mvvm-the-standard-answer-betrays-a-deep-misunderstanding-of-3-key-pr-7ykb9dvzq)
