Stop Using MVVM in SwiftUI! Try THIS Instead 🚀 (Game-Changing Architecture)
HTML-код
- Опубликовано: 12 янв 2025
- Stop Using MVVM in SwiftUI! Try THIS Instead 🚀 (Game-Changing Architecture)
Mentoring 👉 rebeloper.com/...
MVVM (Model-View-ViewModel) is often hailed as the go-to architecture in SwiftUI development, thanks to its clean separation of concerns and reactive data-binding with SwiftUI's state management. However, it can become overly complex, leading to bloated ViewModels and unclear boundaries. That’s why in this video, I’ll introduce you to MVSU (Model-View-Service-Utility), a simplified yet powerful alternative tailored for SwiftUI.
You’ll get a step-by-step example of how to implement MVSU, showing you exactly what to use and how it streamlines your app architecture while keeping your code modular and maintainable. Don’t miss it!
→ PLAYLIST:
SwiftUI in iOS18 👉 • Unlock SwiftUI's Hidde...
DO YOU WANT TO ME TO WORK ON YOUR PROJECT?
HIRE ME → rebeloper.com/...
TOOLS I RECOMMEND:
→ rebeloper.com/...
Resources: store.rebelope...
__________
Get in touch:
→ support@rebeloper.com
SUBSCRIBE to weekly tips & tutorials for building iOS apps!
→ www.youtube.co....
GitHub: github.com/reb...
Hire me: rebeloper.com/...
LinkedIn: / rebeloper
My Blog: rebeloper.com/...
Follow me on Instagram: / rebeloper
Twitter: / rebeloper
______
#rebeloper
STOP Using Conditional Modifiers in SwiftUI! Here's What to Do Instead 🚀 ruclips.net/video/mVChmuAaQxo/видео.html&ab_channel=Rebeloper-RebelDeveloper
Great Vid
The same mvvm, but use another words.
Indeed!
Really?
@@rebeloper I found the key to the difference was the fact that MVVM doesn't let you share anything...this is giving me the opportunity to move forward the "Service" concept. I'm not yet sure about the utility thing...but for now I will use the service to manage the database interactions too.
That's the same as MVVM! Honestly, the "U" or utility is just very redundant and you add unnecessary codes, making the codebase less maintainable. Also one more thing, you are using static, which are bad for memory management as they don't get cleaned up, which are bad for ARC.
Thanks for the feedback
ruclips.net/video/kw6KZqnXejQ/видео.html
Where is game changer? What the difference between this and vm?
Honestly none, he just makes the code more polluted making it less maintainable.