Understanding Data Flow in SwiftUI Applications

preview_player
Показать описание
In this video, Mohammad Azam will explain the data flow in SwiftUI applications.

If you want to support my work then please consider buying one of my courses below. The links below already has coupon attached which will give you the best deal possible. Thank you for your support!

SwiftUI - Declarative Interfaces for any Apple Device

Mastering RxSwift in iOS

MVVM Design Pattern Using Swift in iOS

Mastering ARKit for iOS

Intermediate and Advanced iOS - Build Real World Apps

The Complete Guide to JSON Parsing in Swift

Data Structures and Algorithms in Swift

Design Patterns in iOS Using Swift

Mastering MapKit for iOS

Machine Learning in iOS Using Swift

Mastering Firebase for iOS Using Swift

Mastering Server Side Swift Using Vapor 3

NodeJS - The Complete Developer Bootcamp

The Complete Guide to Lean Controllers in iOS
Рекомендации по теме
Комментарии
Автор

Great explanation of MVVM! I’ve been implementing this model in my projects thanks to you.

TreyCox
Автор

An alternate approach, building on your approach, where we make the ViewModels independent of service calls and business logic, for even better separation of concerns:

Create a single AppCoordinator in AppDelegate, and keep a strong reference to it.
The AppCoordinator is responsible for Service calls, persistence, caches, managing and injecting dependencies, business logic etc.
Coordinators are also responsible for creating ViewModels (from Models), and for passing them down to View hierarchies.
The ViewModels are very simple; they don't perform any Service calls. Instead, they can have bindings to Coordinator properties, and will interpret those bindings to produce simple values usable by Views.
This approach removes a lot of responsibility from the ViewModel.
Child Coordinators can be used to further separate out the work. e.g. LoginCoordinator, SettingsScreenCoordinator, GameScreenCoordinator, etc.

This Coordinator pattern is almost identical for non-SwiftUI apps as well. (RxSwift can be used for binding on < iOS13 targets.)
Cheers.

wmblemania
Автор

I’ve a question about the udemy course. Do you update the past videos when Apple deprecate something in a recent beta?

محمدبنسراجالدين
Автор

The video clarity is poor, but the content is good. Hope for 1080p video next time. Thank you.

mojit
Автор

Your voice is very quiet please speak louder in the next video

donathmm