BLACK FRIDAY SALE: Save 50% on all my Swift books and bundles! >>

Is MVVM still a good fit for SwiftUI? What is the general consensus?

Forums > SwiftUI

Now that everyone has had some experience working with SwiftUI, what is the general consensus in regards to whether or not MVVM is a good fit for SwiftUI? Are people in general content with this pattern? Just curious.




Is it still good? Yes

Is it always the best? No

Depends on your use case and app. If it's an app with only two views and/or not very complicated business logic, perhaps you don't need it.


I've seen a lot of post on the web lately stating it isn't. I use it in the app I am working on and I honestly don't see how to do without it if indeed you have quite a lot of business logic. Simple views can do without, sure, but complex views benefit by it. I use Paul's approach from the Ultimate Portfolio App and it has helped me a great deal!


Hacking with Swift is sponsored by Guardsquare

SPONSORED AppSweep by Guardsquare helps developers automate the mobile app security testing process with fast, free scans. By using AppSweep’s actionable recommendations, developers can improve the security posture of their apps in accordance with security standards like OWASP.

Learn more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.