Closures in Swift Hindi tutorial | Swift for beginners | Swift Tutorial

Поділитися
Вставка
  • Опубліковано 21 жов 2024
  • In this video, you will get familiar with what are closures in swift and when and how to use them
    I am using Xcode version 10.2.1 for this video.
    if you like this video, please give a thumbs up, like and subscribe to my channel and I will continue to create more videos like these.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ✅ Subscribe to the channel and stay ahead of everyone by following the right way for writing clean code in swift. 🔥🔥🔥🔥🔥
    🔗Click on the link to subscribe: www.youtube.co...
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ############################################
    Connect with me on social media
    📧: codecat15@gmail.com
    #️⃣: / codecat15
    Facebook: / code.cat.792
    Github: github.com/cod...
    ###########################################

КОМЕНТАРІ • 44

  • @urlunaticguy
    @urlunaticguy 2 роки тому +1

    Very good video. For beginners it's great. Love from Kolkata bro.

  • @nitinawasthi8560
    @nitinawasthi8560 4 роки тому +2

    underrated channel

  • @vilas18able
    @vilas18able 4 роки тому +2

    Damn cool, good taking into concepts. Seedha code pe bina confusion k. Mujhae dikhat hoti thi closures ko leakae. Ab nahi. Each and every moment is well taken.keep going, helping me a lot in knowing concepts better way.
    I've purchased Angelina ios tutorial, over that as a desi guy desi approach makes me feel better. Kudos

    • @CodeCat15
      @CodeCat15  4 роки тому

      Watch the part 2 of this video, vo aur bhi accha hai @vilas aur usmai maine kuch aur tips share kari hai. Do feel free to ask questions on this topic and do subscribe and share with your iOS group

    • @vilas18able
      @vilas18able 4 роки тому +1

      @@CodeCat15 definitely am on it, indeed all of you videos😇

    • @CodeCat15
      @CodeCat15  4 роки тому

      Thank you so much for such kind words, am glad my videos were helpful

  • @alokraj6957
    @alokraj6957 4 роки тому +5

    This is so nice for beginners.

    • @CodeCat15
      @CodeCat15  4 роки тому +1

      Am glad you liked it, do ask questions on this topic if any and do subscribe and share this with your iOS group as well @Alok thank you

  • @villagefestclpuram1966
    @villagefestclpuram1966 3 роки тому

    Superb explanation brother.

  • @harshadmangaliya9731
    @harshadmangaliya9731 4 роки тому +1

    really clear explanation

    • @CodeCat15
      @CodeCat15  4 роки тому

      Hello Harsha, welcome to the channel. Do watch the second part of closures for more detailed explanation. Hope that helps
      Link: ua-cam.com/video/ZP4pEHtndFE/v-deo.html

  • @abidali4156
    @abidali4156 2 роки тому

    very nice.. ❤️ from 🇵🇰

  • @akshitdas2012
    @akshitdas2012 2 роки тому

    Tnks you so much!🙂

  • @ramanminhas4490
    @ramanminhas4490 4 роки тому +1

    Sir please make video on escaping vs non escaping closures and autoclosures

    • @CodeCat15
      @CodeCat15  4 роки тому +1

      In the latest video of api parsing am giving a glimpse of escaping do check that out. I had that on my list Raman I will surely try my best to release it asap 👍

  • @Developer_Rohit_Choudhary
    @Developer_Rohit_Choudhary 2 місяці тому

    thanks...

  • @akanksha2143
    @akanksha2143 3 роки тому

    Ravi please share a video on weak self and unowned closures.

  • @emadbinimran
    @emadbinimran 3 роки тому +1

    great sir

    • @CodeCat15
      @CodeCat15  3 роки тому

      Thank you :) do watch part 2 of this video

  • @garrybawa3149
    @garrybawa3149 Рік тому +1

    Very useful

  • @sunnyvinay0058
    @sunnyvinay0058 3 роки тому +1

    Main aim of closures is capturing , please make a new video on capturing

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Correct and i missed it out in both the parts of closure, i will make it up by creating a video on that very soon

  • @tusharingle5351
    @tusharingle5351 3 роки тому

    Thanks a lot sir ❤️

  • @hardipgajera2316
    @hardipgajera2316 4 роки тому +2

    Thank you 😊❤️

    • @CodeCat15
      @CodeCat15  4 роки тому

      welcome buddy, and do let me know if you have any questions on this topic will be happy to help

  • @natureloverspakistan
    @natureloverspakistan 3 роки тому +1

    interview questions - closure capturing

    • @CodeCat15
      @CodeCat15  3 роки тому

      Ek detailed video closure capturing pe karte hai 👍

  • @vipinkumarbdts
    @vipinkumarbdts 2 роки тому +1

    Can we develop full iOS app on swift playground??

    • @CodeCat15
      @CodeCat15  2 роки тому

      Hello Vipin welcome to the channel, we cannot develop a full app using playground, because we need to test the app and deploy it and for that we would need to use Xcode and create an iOS app.

  • @ShakeelAhmed-jb6nu
    @ShakeelAhmed-jb6nu 4 роки тому +1

    closer ko function ka sakty hain ya nahi?

    • @CodeCat15
      @CodeCat15  4 роки тому +1

      Yes, vo ek type k function he hai. Closure ka maine second part bhi banaya hai to usse bhi aap check kar le
      Link: ua-cam.com/video/ZP4pEHtndFE/v-deo.html

    • @ShakeelAhmed-jb6nu
      @ShakeelAhmed-jb6nu 4 роки тому +1

      @@CodeCat15 aksar interview Question atta ha k Closure ko ham function k sakty hain ya nahi (interview point of view sy batain)
      and thank ye video main nay view ki hoi ha r app k lecture bhi dakta hon main

  • @AmitGupta-ef2nm
    @AmitGupta-ef2nm 4 роки тому +1

    nice video

    • @CodeCat15
      @CodeCat15  4 роки тому

      Thank you @Amit feel free to ask questions on this if you have any and do share the channel with your iOS group

  • @rishilund4120
    @rishilund4120 3 роки тому

    why only in heavy weight we use it ?

  • @letusc8497
    @letusc8497 3 роки тому +2

    Why to use closure?
    Difference b/t closure n function

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      You should use closure to perform tasks which take time specially API calls or some delegate events, as you will progress from beginners to advance playlist in this channel you will see that for API parsing and for some Core data CRUD events we are using closures to do an operation and then return the output of those operations. The second common use you will see that all higher order functions in swift like map, sort, flat map use closure to do a task and return the output.

    • @divyanshugupta1515
      @divyanshugupta1515 2 роки тому +1

      @@CodeCat15 why cnat wew use function there in api parsing and crud events and if we can then why we use closures

    • @CodeCat15
      @CodeCat15  2 роки тому +1

      @@divyanshugupta1515 the API operation performs in a different thread and does not wait on the main thread and escaping closures are the only way to get value back from such operations
      For database operations there’s no need to use closures a simple function would suffice but it depends on the requirements as well like if you are performing some background database task then maybe you want to use escaping closure
      There’s a example in part 2 of the video where I have covered more grounds where n how closures can use and database operation is one of them do check that video

    • @divyanshugupta1515
      @divyanshugupta1515 2 роки тому

      @@CodeCat15 thank you so much 🙏

  • @krishaSadhu
    @krishaSadhu 3 роки тому +1

    👏