ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

How to use MVVM in iOS - State Management and Data Flow through SwiftUI - Example Refactoring Swift

mvvm design pattern ios

swiftui by example

SwiftUI MVVM

swiftui mvvm tutorial

mvvm swiftui tutorial

mvvm swiftui example

swiftui onmove

swiftui state management

swiftui state binding

state management swiftui

data flow Swiftui

data flow through swiftui

unit testing swiftui

swiftui view model

mvvm swiftui

swiftui design pattern

swiftui mvvvm example

Karin Prater

ios development swift

swift mvvm

ios mvvm

Автор: Karin Prater

Загружено: 2021-01-02

Просмотров: 47526

Описание: MVVM (Model - View Model - Model) Swift tutorial. MVVM 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 Advantage of MVVM: easy to include unit testing for SwiftUI projects
44:20 Wrap-up

📖 I wrote a summary blog post about MVVM where you can find all the images from this tutorial here: https://www.swiftyplace.com/blog/swif...
📖 You can read more about how to learn SwiftUI in this block post that I wrote a wile ago.
  / on-the-road-to-learn-swiftui  

If you liked what you learned and you want to see more, check out one of my courses!
👨‍💻 my SwiftUI course https://school.swiftyplace.com/course...
👨‍💻 my Core Data and SwiftUI course https://school.swiftyplace.com/course...
👩🏻‍💻 Combine course https://school.swiftyplace.com/course...


👉 Overview of Property wrappers in SwiftUI    • Property wrappers in SwiftUI: How to choos...  
👉 @State vs @Binding    • SwiftUI tutorial for Beginners - @State vs...  
👉 @ObservedObject vs. @StateObject    • SwiftUI by example: @ObservedObject vs. @S...  
👉 @Published vs @State    • @Published vs @State - SwiftUI by example ...  
👉 AppStorage and SceneStorage    • SwiftUI 2.0 tutorial -  @State vs @AppStor...  

#SwiftUI #Xcode #Programming #DesignPatterns

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
How to use MVVM in iOS - State Management and Data Flow through SwiftUI - Example Refactoring Swift

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

MVI в iOS-приложении || Охэхэнные истории

MVI в iOS-приложении || Охэхэнные истории

MVVM + Data Driven UI на практике swift

MVVM + Data Driven UI на практике swift

«Что такое SwiftUI и как его применять c MVVM»– Людмила Платонова | SoftTeco iOS Talks

«Что такое SwiftUI и как его применять c MVVM»– Людмила Платонова | SoftTeco iOS Talks

«Будем жить!» | Хитрая передача на Первом канале о вернувшихся с СВО (English subtitles) @Max_Katz

«Будем жить!» | Хитрая передача на Первом канале о вернувшихся с СВО (English subtitles) @Max_Katz

Передача данных в MVVM в iOS (да и в Android тоже) - Mad Brains Техно 11.10.19

Передача данных в MVVM в iOS (да и в Android тоже) - Mad Brains Техно 11.10.19

Александр Цыбулько — Finita la State Machine — MVI в iOS-приложении

Александр Цыбулько — Finita la State Machine — MVI в iOS-приложении

Похудей на 45 КГ, Выиграй $250,000!

Похудей на 45 КГ, Выиграй $250,000!

🔴АУСЛЕНДЕР: Техника для Украины УНИЧТОЖЕНА! ДИВЕРСИЯ В НАТО!

🔴АУСЛЕНДЕР: Техника для Украины УНИЧТОЖЕНА! ДИВЕРСИЯ В НАТО!

ПОТАПЕНКО:

ПОТАПЕНКО: "Я скажу страшную вещь". Про экономику, Силуанова, пакет с пакетами и ЧТО ДАЛЬШЕ

Swift API Calls for Beginners (Networking) - Async Await & JSON

Swift API Calls for Beginners (Networking) - Async Await & JSON

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]