How to use async/await + SwiftUI + MVVM + API Call (URLSession) + Swift in Xcode-15 (iOS Dev)

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 เม.ย. 2024
  • Async/await + SwiftUI + MVVM + API Call (URLSession) + Swift + Xcode-15 + iOS Development
    Please subscribe my channel for more contents.
    LinkedIn: / dev-iayush27
    Instagram: / xcoder.ayush27
    GitHub: github.com/dev-iayush27/Async...
    ~ Keep Learning & Happy Coding ~
    Thanks for watching!
    #ios #iosdev #iosdeveloper #iosdevelopment #swiftui #swiftuitutorial #swifttutorial #appdevelopment #swiftprogramming #iosappdevelopment #iosdevelopers #iosengineer #code #coder #coding #ui #softwaredevelopment #softwareengineering #softwareengineer #softwaredeveloper
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 14

  • @martygo
    @martygo 22 วันที่ผ่านมา

    Good video. Thanks for all.

  • @Atwooooood
    @Atwooooood หลายเดือนก่อน

    My first time using an API. This video was thorough and covered just enough to get me started. Thank you.

  • @tunmi88
    @tunmi88 2 หลายเดือนก่อน

    Cool explanation, ill subscribe for more of your content

  • @daveplus
    @daveplus 3 หลายเดือนก่อน

    Vete good video!! Thanks!!! 🥰

    • @Xcoder-Ayush
      @Xcoder-Ayush  3 หลายเดือนก่อน

      Thanks for watching!

  • @shreyashdewangan7288
    @shreyashdewangan7288 หลายเดือนก่อน

    This method (async/await) or file structure or syntax is production ready or only for learning purpose (guide me), nice explanation , good video 👍👍

  • @rohitsainier
    @rohitsainier หลายเดือนก่อน

    why you used observed object?

  • @iLoveAppl3947
    @iLoveAppl3947 2 หลายเดือนก่อน +1

    is AsyncImage supporting caching ? because if it's not, then that is useless...Imagine having 500 + heavy images downloading all the time when you go up and down

    • @Xcoder-Ayush
      @Xcoder-Ayush  2 หลายเดือนก่อน

      Thanks for your comment.
      No, it does not support caching. AsyncImage only loads the image from external URL. We have to handle cache part additionally or can use third party library.

  • @onuranl2346
    @onuranl2346 2 หลายเดือนก่อน +1

    Please don't whisper into the microphone, this is not an ASMR video!

  • @sebastianalzate8461
    @sebastianalzate8461 2 หลายเดือนก่อน

    What is the exact part of your code that forced you to use @MainActor? I do not understand why you had tu use it in this case. (I am learning Swift), Thanks!

    • @VikasS-of8lb
      @VikasS-of8lb 2 หลายเดือนก่อน

      It's all about the published property of UserModels to update the UI. That would require main thread to handle in the UI end. You can approach it in a different way either.