Validating Form in SwiftUI Using MV State Pattern

preview_player
Показать описание
In this video, Mohammad Azam will demonstrate how to validate a form in SwiftUI using MV State Pattern.

Related Videos:
1. Stop Using MVVM for SwiftUI
2. Client/Server Apps in SwiftUI Using MV State Pattern

#iosdev #swiftui

Support my work and get my courses:

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

Thank you for this :)
What about select lists that contains objects (i am coming from react native, maybe i am wrong here). Does this way of checking apply to more complex fields as well?

LSTReda
Автор

Hi Mohammad, I appreciate your dedication to this paradigm. However, what seems unconvincing is the fact that your examples of the MV pattern consist of quite simple tasks that would mainly be applicable in simple apps. You would convince many more people if you could show an app which communicates with a backend for things like authentication and CRUD actions while using the MV pattern.

hamslammula
Автор

To keep the view clean, where do we keep the business logic of the app. In the V by adding extensions or in the M. On the other hand let's say some data needs to be referenced will it be appropriate to add the logic on the M or in a V I think that is a good reason for VM when we need class references.
As for me the MVVM is just to keep code clean the only problem is needing a VM for each V. I wish one VM could be used for all Vs.
Just my own small ideas. I am still a junior iOS developer not even having a job but still learning.

Thank you for the video

Ivoshevo
welcome to shbcf.ru