BLACK FRIDAY SALE: Save big 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 RevenueCat

SPONSORED In-app subscriptions are a pain to implement, hard to test, and full of edge cases. RevenueCat makes it straightforward and reliable so you can get back to building your app. Oh, and it's free if your app makes less than $10k/mo.

Learn more

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

Reply to this topic…

You need to create an account or log in to reply.

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.