SwiftUI MVVM Programming using ObservableObject Published and ObservedObject

preview_player
Показать описание
M for Model, V for View, and VM for View Model. MVVM is the new design pattern that is best use with SwiftUI. In this video, we will replace our Quotes app which is using @State and @Binding when passing data, to use ObservableObject + Published to make a Reactive UI.

Video Timestamps
00:00​ Intro
01:09 onDelete
02:31​ MVVM
03:06​ View Model a class
03:33​ ObservableObject and Published
03:57​ StateObject
04:17​ ObservedObject
08:29​ toolbar
09:11​ onMove

Thank you for watching! Like, comment, subscribe!

📷 Follow me on Instagram

🐥 My Twitter

#swiftui​ #swift​ #iosdeveloper
Рекомендации по теме
Комментарии
Автор

That was a super long train ride. Started at 7am on a Thursday — ended on Sunday at 6:55pm

SeriousCat
Автор

Hey, great little video. Do you have any tips on altering the quotes persistently (via json?)

tttopcattt
Автор

Why didn't you make this video building an app from scratch?

enaungong
Автор

Really hard to concentrate on the coding with all that distracting background noise!

KK-pqlu