MVVM Tutorial for Absolute Beginners with SwiftUI (iOS 2022)

  Переглядів 11,184

Indently

Indently

2 роки тому

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.
Source code: github.com/federicocotogno/MV...

КОМЕНТАРІ: 21
@user-uf5ip6wy7b
@user-uf5ip6wy7b 7 місяців тому
This need way more support. You made this so clear and considerate. Keep up the handwork dude!
@AGiles29
@AGiles29 2 роки тому
Man, i love you. Easy tutorials, great explanation. Very helpful with beginning of app development! Thank you!
@ndrukz
@ndrukz 2 місяці тому
man, your explanation and the way you do the example is to the point. Thank you very much capt.
@jameelshehadeh9011
@jameelshehadeh9011 2 роки тому
straight to the point ! thanks alot champ
@ostanjaffcompany173
@ostanjaffcompany173 2 роки тому
Thank you so much. Well explained.
@Tony_Ugatz
@Tony_Ugatz Рік тому
I would love your theme ;) but amazing work as always!
@Indently
@Indently Рік тому
I tried to copy the one that I get from PyCharm, but I just randomly changed the colours in the preferences!
@CraigSchubert
@CraigSchubert 6 місяців тому
Great overview of this - thanks!! 🙂
@Indently
@Indently 6 місяців тому
Glad it was helpful!
@jmd62800
@jmd62800 10 місяців тому
Cool , Very well done, not so simple, but Very clean 👏👏👏😘👍
@waleedware7779
@waleedware7779 2 роки тому
Great clear straight forward explanation 👍🏻 , appreciate if you can make a video for using async/await combine swiftui urlsession.
@Indently
@Indently 2 роки тому
There might still be some weeks before that, but I'll get to it eventually!
@cub711
@cub711 Рік тому
Great video. Can I also build a view in the viewModel? I need to decide between one ore two tables.
@samridhigusain1344
@samridhigusain1344 Рік тому
do u have any video on multi screen ios app using mvvm structure ?
@JLCodes
@JLCodes 11 місяців тому
Why did you restrict the ViewModel in the `ContentView`? It's okay for ViewModels to be reusable right?
@subysukumaran3803
@subysukumaran3803 9 місяців тому
Why did you write viewmodel inside the content view extension?
@user-yd9xy3rb4x
@user-yd9xy3rb4x Рік тому
How are you going to test your vm if it’s written in an extension?
@Indently
@Indently Рік тому
This is a conceptual video
@RajeshSharmaIndia
@RajeshSharmaIndia Рік тому
@@Indently so please mention in your video title or description , this is conceptual video and i am following bad practices in this video. learn this approach on your own risk. don't you think , lot of subscriber followed so you should be more responsible.
@RajeshSharmaIndia
@RajeshSharmaIndia Рік тому
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 .
@Indently
@Indently Рік тому
I've never heard of "couling", maybe you can enlighten me on that.
SwiftUI - Intro to MVVM | Example Refactor | Model View ViewModel
11:55
когда одна дома // EVA mash
00:51
EVA mash
Переглядів 9 млн
ОДИН ДОМА #shorts
00:34
Паша Осадчий
Переглядів 3,5 млн
How to Use MVVM (Model View ViewModel) in Swift & iOS - 2023
16:50
iOS Academy
Переглядів 56 тис.
Why I don't do MVVM anymore
10:56
Flo writes Code
Переглядів 6 тис.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Переглядів 22 тис.
Python's 5 Worst Features
19:44
Indently
Переглядів 50 тис.
Build a SwiftUI Pokedex app for iOS 15 (Clean MVVM Architecture)
33:10
SwiftUI Masterclass: Build To Do List App
2:42:49
iOS Academy
Переглядів 88 тис.
SwiftUI MVVM Tutorial: Simple Example with ObservableObject
12:43
Logan Koshenka
Переглядів 18 тис.
STOP Using MVVM with SwiftUI
18:30
azamsharp
Переглядів 16 тис.
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35