MVVM Tutorial for Absolute Beginners with SwiftUI (iOS 2022)

preview_player
Показать описание
Today we are going to be looking at MVVM (Model-View-ViewModel), an app architecture that allows us to write more maintainable code by separating the concerns. It’s practically just a way of separating logic from the UI, because that becomes unmanageable after a certain period of time.

Рекомендации по теме
Комментарии
Автор

man, your explanation and the way you do the example is to the point. Thank you very much capt.

ndrukz
Автор

This need way more support. You made this so clear and considerate. Keep up the handwork dude!

IversonKester
Автор

Man, i love you. Easy tutorials, great explanation. Very helpful with beginning of app development! Thank you!

AGiles
Автор

straight to the point ! thanks alot champ

NSObject
Автор

Very clear. 🎉 But it appears that you’re suggesting creating one view-model for every View which requires justification.

AlanRick
Автор

I would love your theme ;) but amazing work as always!

Tony_Ugatz
Автор

Cool, Very well done, not so simple, but Very clean 👏👏👏😘👍

jmd
Автор

Great clear straight forward explanation 👍🏻, appreciate if you can make a video for using async/await combine swiftui urlsession.

waleedware
Автор

Great video. Can I also build a view in the viewModel? I need to decide between one ore two tables.

cub
Автор

How are you going to test your vm if it’s written in an extension?

Денис-жфр
Автор

Why did you restrict the ViewModel in the `ContentView`? It's okay for ViewModels to be reusable right?

JLCodes
Автор

Why did you write viewmodel inside the content view extension?

subysukumaran
Автор

do u have any video on multi screen ios app using mvvm structure ?

samridhigusain
Автор

View model is an independent component which should not have any information regarding views. by creating the view model class inside the view extension you are encapsulating the view model class which is resulting in a tight Coupling.

What problem are you solving by creating the view model class inside view extension?

Sorry to say, but lots of people following you on internet, and you are just promoting bad practices, you should be more careful and responsible .

RajeshSharmaIndia
join shbcf.ru