Publisher and Subscriber protocol in Combine Swift Hindi Tutorial

preview_player
Показать описание
Publisher and subscriber protocol in combine framwork are the key fundamentals that you should know before writing your first SwiftUI app. In this video, we will explore what publishers and subscribers are along with their life cycle.
This is just an introduction of publisher and subscribers to get you started with combine there will be more detailed use cases where we build our own custom publisher and subscriber to handle a custom app behavior.

This video is a part of the combine beginner series, I recommend watching the beginners playlist before you start your journey with combine.

Given are the chapters in the video
0:00 introduction
0:19 codecat15 example
1:27 combine publisher extensions
2:10 publisher and subscriber protocol
4:17 publisher and subscriber lifecycle
9:56 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

###########################################
#combine #swiftui #combineHindiTutorial
Рекомендации по теме
Комментарии
Автор

Best real time examples you have :) Every time I watch ur content I pass my gratitude to u .Thanks!!

Nidhi
Автор

Awesome as always. Excited for more Combine videos 🙌

iamwaseem
Автор

i must say thanks and then watch.. just wow!!

shabinaqvi
Автор

This is just amazing brother :-) Keep it up

JunaidKhan-nytu
Автор

is wraper using, sate manage like other programing ?? flutter and react js ??

EsrafilMallick-zl
Автор

Hey thanks Ravi for the knowledge sharing. In one of my projects, there are 2 different swift packages being used by 1 app.

* App can access whatever publicly available from both the packages.
* Packages can’t access anything from the App.
* Packages can’t share anything between each other.

Problem: when button on view inside package 1 is clicked, it should navigate to the view available inside package 2. But its not possible directly as package 1 can’t access any classes of package 2.

Solution I’m thinking of:
Send notification from package 1 to App, App will listen to the notification and push the respective view available in package 2 accordingly. (App already have the navigation logic defined, so no worries on navigation part). I was thinking to do so using NotificationCenter. But after watching this video, just wanted to know how can we solve this inter-module navigation scenario using the publisher-subscriber approach in SwiftUI?

akshaygajarlawar
Автор

@Ravi are there more videos available for Combine frame work made by you??

poojaraghuwanshi
Автор

Hi Ravi, Can you please create one video on MVVM 2 way binding with combine. I tried finding video in your playlist for MVVM + 2 way binding as you discussed in some of your MVVM video series.

shikhabudhiraja
Автор

@Code Cat Sir is it possible to create. a full video in Combine with an example ?

shahriarmahmud
Автор

How can i pass data from one controller to another viewcontroller using publisher and subscriber

javedsiddique
Автор

Hi, Thank you for awesome tutorials. Plz make RxSwift Tutorials. ( Dada plz RxSwift che pan tutorials banva )🙏

bhimashankarhatture
Автор

Hey Mate as usual fantastically fantabulous video and really appreciate your efforts for makings such videos for the iOS community. I believe its high time to use COMBINE and get rid off so called THIRD PARTY LIBRARY RxSwift… I think below two reasons

1) Its create your project unnecessarily big which later problematic to maintain (if dev has used in sensible way)

2) Being external library It brings self-doubt as this has been developed by other community

I believe this video and series gonna help us to understand FRP within Apple ecosystem.

Fun part :
All dev’s you all know aakhir ‘Apne to Apne hote hai baki sare Sare sapne hote hai’ 😀 so start using combine instead RxSwift and make it XSwift 😂😂.

JockR
Автор

Dear Code cat, great videos. May I add a quick nitpick? It's is "equal" to and not is "equals" to. Just thought you'd like to know.

nsmlsof
Автор

when to use combine framework? what are the use cases in a SwiftUI? I am new to Combine.

ushadesai
Автор

Hello sir,  


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
In swift:

krishaSadhu
Автор

What’s the difference between RXSwift Subscribers & Combine Subscribers

rakesh
Автор

Can you please make videos in english otherwise add subtitles. I found this channel is useful for me to learn great things. unfortunately i dont know that much hindi to understand

mounikareddy
Автор

Your title is a bit misleading. Combine framework is not only available in SwiftUI but non SwiftUI as well. You should rename the word SwiftUI to Swift in your title.

rajanmaheshwari