filmov
tv
API call in SwiftUI with MVVM pattern and URLSession (Hindi tutorial)

Показать описание
In this session, we will learn to call an API in SwiftUI using the combine framework observable object protocol, @Published wrapper andURLSession. We will be using the MVVM pattern for this demo along with the single responsibility principle.
Before you begin this session you must know how the observable object protocol works so that you become more familiar with its nature given below is the link for the same
If you are new to the MVVM and MVC pattern then as discussed in the video I am sharing the links of these videos where I have explained these patterns in much more details so do check them out
And finally, there are two parts of the single responsibility principle where we will explore what are the benefits of using this principle
Given are the chapters covered in today’s video
0:00 introduction
1:36 MVVM sequence diagram
3:10 massive ViewModel
3:45 code & folder structure walkthrough
5:48 coding login validation layer
7:22 coding observable login ViewModel
9:23 coding SwiftUI login view
15:15 API code
18:31 code clean up
21:20 why completion handler
22:09 conclusion
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅ Subscribe to the channel and stay ahead of everyone by following the right way for writing clean code in swift. 🔥🔥🔥🔥🔥
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------------------------------------------------------
📥 Download the source code from
-----------------------------------------------------------------------------------------------------------------------
############################################
Connect with me on social media
###########################################
#apiSwiftUI #combineApiCall #swiftUIHindiTutorial
Before you begin this session you must know how the observable object protocol works so that you become more familiar with its nature given below is the link for the same
If you are new to the MVVM and MVC pattern then as discussed in the video I am sharing the links of these videos where I have explained these patterns in much more details so do check them out
And finally, there are two parts of the single responsibility principle where we will explore what are the benefits of using this principle
Given are the chapters covered in today’s video
0:00 introduction
1:36 MVVM sequence diagram
3:10 massive ViewModel
3:45 code & folder structure walkthrough
5:48 coding login validation layer
7:22 coding observable login ViewModel
9:23 coding SwiftUI login view
15:15 API code
18:31 code clean up
21:20 why completion handler
22:09 conclusion
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅ Subscribe to the channel and stay ahead of everyone by following the right way for writing clean code in swift. 🔥🔥🔥🔥🔥
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------------------------------------------------------
📥 Download the source code from
-----------------------------------------------------------------------------------------------------------------------
############################################
Connect with me on social media
###########################################
#apiSwiftUI #combineApiCall #swiftUIHindiTutorial
Комментарии