MVVM SwiftUI Tutorial - State Management and Data Flow through SwiftUI - Example Refactoring
In this video we talk about MVVM (Model - View Model - Model), which is a design pattern recommend for SwiftUI 🤩. Next we will see what MVVM means and how it works with SwiftUI. A important part is to understand the data flow. We will see why we use ObservableObject and @Published.
We will be talking about the declarative programming in SwiftUI, where “the truth“ comes in. In the view part we will see the difference between @ObservedObject, @StateObject and @EnvironmentObject.
We will use it to improve a sample project and take advantage of it when working in the preview and writing unit tests.
Overview
00:00 Introduction
02:02 Coding example with bad practice
09:48 How does Model - View Model - Model work ⭐️
12:47 MVVM with SwiftUI: State management and data flow ⭐️
26:02 Recoding our coding example to use MVVM
35:58 Advantage of MVVM: dependency injection and showing different states of the view model in the preview
40:56 Adva
1 view
95
21
4 months ago 00:04:14 1
Meditation UI Design with Flutter: Complete App Design #1
5 months ago 00:28:02 4
Heroes 3 / Swift / Playground / Урок 1
5 months ago 00:00:00 1
Basic SwiftUI — ШМР iOS 2024
11 months ago 01:27:41 1
Free iOS Development Course | Building a CryptoCurrency App with SwiftUI
1 year ago 00:43:25 1
Приложение с MVVM, COMBINE и SWIFTUI. Обзор на примере, архитектура - Mad Brains Техно
3 years ago 00:47:23 10
Слава Слуцкер – Используем State Machine в SwiftUI: быстро, просто и удобно
3 years ago 00:45:54 1
MVVM SwiftUI Tutorial - State Management and Data Flow through SwiftUI - Example Refactoring
4 years ago 00:14:16 1
Adding Annotations to Map in SwiftUI [Patrons Only]
4 years ago 00:12:48 1
Searching List in SwiftUI Using UISearchBar
4 years ago 00:07:51 4
Implementing TabView in SwiftUI
4 years ago 00:12:24 1
SwiftUI MVVM with ObservableObject & Published (Swift 5, Xcode 12, 2020) - iOS Development
4 years ago 00:17:57 1
SwiftUI MVVM Programming with ObservableObject @Published @ObservedObject
4 years ago 00:29:01 1
The Complete Guide for Integrating Camera and Photo Library in SwiftUI
4 years ago 00:29:48 7
SwiftUI c нуля: урок 4 - Slider, ObservableObject, Published, Пишем плеер на MVVM