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

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

You are awesome Ravi! You teach, motivate and guide. You are best teacher and mentor.

ernishant
Автор

Great Ravi.... Good video your video alway help iOS community to learn new thing with professional code... thanks yar

yogeshdate
Автор

Your content and explanation is fab. bro ... Thank You so much bro ..👍

rachitsharma
Автор

Excellent tutorial. Thanks a lot Ravi for putting effort to create this session and explaining with ease 🙌

hotskyakash
Автор

Very informative video. Thank you Ravi 🎉

rohithnayak
Автор

you are the excellent guru from ios world. it my opionon ❤️❤️

AboutTheVoice
Автор

aupki all videos achi h but ek video ko samajhne k liye 3 videos dekhne pd jati h

neerajdahit
Автор

It's already too much waiting for part 2 of the

hardipgajera
Автор

Thank you so much for this video, you are an absolute gem :) On that note, could you please make a video on unit testing these SwiftUI code? That will be really helpful as it's hard find such videos.

puneethkamath
Автор

Hi, Good tutorial 👍
Could you please also show how to test viewmodel which is conforming to ObservableObject? Or tutorial is already available?

kavyashreehegde
Автор

the navigation link is deprecated for IOS 16+ so how to implement this destinantion and lable for it

SainithinGurramgadda
Автор

can you plz make a video on cart logic in e-commerce app for swift?

anantbhatt
Автор

Nice... I have one doubt, how can we make application secure?

rameshK-yxnz
Автор

how to show Activity loader in Swift UI API calls

SwiftUI_ios_information
Автор

Hi, Could you kindly share the video link containing http utility

prasanthmadhavanath
Автор

The content is great, but there are some parts of the video which are really hard to understand. You really talk too fast sometimes 🙂

developerios
Автор

Hello sir,  

In swift :
First of all, thank you so much for sharing these much knowledge with us on YouTube channel but there is one more help we need. 


Can you please share interview questions with us for fresher! Including logical question. 


If you do it I will be grateful to you

krishaSadhu
welcome to shbcf.ru