How to Network Like A Pro | Async/Await | Pagination | Error Handling | From A Meta Engineer

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2023
  • Learn how to write professional networking code with SwiftUI using an amazing cryptocurrency application.
    Feature list:
    👉 Async/Await for fetching live crypto data with SwiftUI
    👉 Error Handling
    👉 Pagination
    👉 Refresh data
    🖥️ RESOURCES
    🔴 STARTER PROJECT (downloadable source code):
    github.com/sdowless/CryptoAsy...
    🔴 Become a member for lifetime access to source code:
    www.stephancodes.com/blank-page
    🖥️ MORE COURSES & SOURCE CODE FILES
    👉 Pro Courses:
    www.stephancodes.com/videos
    👉 iOS App Templates:
    www.stephancodes.com/shop
    👉 FREE Crypto SwiftUI Course
    • Free iOS Development C...
    👉 FREE UBER SwiftUI Course
    • 🔴 Let's Build UBER wit...
    👉 FREE Twitter SwiftUI Course
    • 🔴 Let's Build Twitter ...
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @anonanon7249
    @anonanon7249 ปีที่แล้ว +1

    Thank you just what I needed please post more content!

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

    love the content, keep up the good work!

  • @rank1macro
    @rank1macro ปีที่แล้ว +2

    NEW VIDEO FROM MY FAV TEACHER & MENTOR. Thanks brother, happy new year 🎉

    • @appstuff5778
      @appstuff5778  ปีที่แล้ว +1

      Happy new year to you too man!

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

    It’s gold.
    Thank you!

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

    thank you for the video. Great tutorial!

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

    amazing tutorial, we love it 💕🔥

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

    I was a obj-c programmer , so many swiftui thing need to pick up . you tutorial is so helpful ,thx

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

      Thanks so much Tom! Make sure you check out my website, have a ton of swift content. The diamond member plan gets you access to everything for $39/mo

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

    You are the best👌🏻

  • @lukemorrice8692
    @lukemorrice8692 20 วันที่ผ่านมา

    This is amazing, thank you

  • @user-qz9mm2eg8l
    @user-qz9mm2eg8l 6 หลายเดือนก่อน

    Beautiful vid

  • @garywkfung
    @garywkfung ปีที่แล้ว +1

    Great video! Can you also teach us how to do this with a grid view? There doesn’t seem to be a way to do lazy loading with a grid view that has cells with different height. Like a Pinterest view

  • @filipp7611
    @filipp7611 10 หลายเดือนก่อน +1

    async/await is not a "new SwiftUI feature", it is a general Swift language feature and can be used in projects without SwiftUI. Also "Combine" a bit better fits SwiftUI, so I would use "URLSession" publishers to make a request and connect the result with UI. But in general great video for beginners.

  • @ssaai
    @ssaai 10 หลายเดือนก่อน +2

    Please make a tutorial about access and refresh token

  • @LukePighetti
    @LukePighetti ปีที่แล้ว

    22:35 Would it handle more cases if we did showAlert = true instead of showAlert.toggle()?

  • @LukePighetti
    @LukePighetti ปีที่แล้ว

    30:18 is there any way to structure the page number logic such that a failure to fetch page 2 followed by a scroll down will not skip page 2 content? Is this an error case worth building for?

  • @adeby
    @adeby ปีที่แล้ว

    Thanks for the video, informative. Special thanks for the MainActor! I wanted to know why you don't use alamofire and what might be a problem with it?

    • @appstuff5778
      @appstuff5778  ปีที่แล้ว +1

      It’s just not really necessary to implement an entire swift package that essentially does the same thing

  • @LukePighetti
    @LukePighetti ปีที่แล้ว

    28:43 could we create an extension on ForEach called onLastAppear() and remove some of the plumbing logic?

  • @okeyshourovroy2769
    @okeyshourovroy2769 ปีที่แล้ว

    Can you please make a video on video calling with swiftui without agora or other paid tools.
    Using native solutions like RTC. 🙏

  • @reignofrage
    @reignofrage ปีที่แล้ว

    W bro

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

    Hi Stephan,
    Video is informative and coding is relaly impressive.
    It seems that async/await is not used in production due to stack corruption bugs. Is it worthy to use thsi in our projects ?

    • @appstuff5778
      @appstuff5778  10 หลายเดือนก่อน +1

      I work for a very large company, and almost all of our networking code was refactored to use async await

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

    9:32, when you say this function is going to be async, does that mean it just runs on a different thread?

  • @LukePighetti
    @LukePighetti ปีที่แล้ว

    17:39 does annotating this function with @MainActor cause the entire fetching operation to be executed on the main thread instead of a background thread? Does it block UI updates?

    • @amdizle28
      @amdizle28 ปีที่แล้ว

      From what I have read it would put all code in the func marked with @MainActor to run on the main thread so if you have an API call there it could block UI on the main thread. Better to separate concerns and dispatchMain for UI updates or call another func for just updating UI.

  • @LukePighetti
    @LukePighetti ปีที่แล้ว

    4:51 what does the // MARK: comment do?

  • @LukePighetti
    @LukePighetti ปีที่แล้ว

    25:12 can you please explain why the coins would get stacked? It looks like a successful fetch is setting the coins array values, not appending them to the array

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

      let page = coins.count / pageLimit + 1. should help you

  • @Aureliola
    @Aureliola ปีที่แล้ว

    Long time no see you. Hope you doing well

  • @shafferzeyn9710
    @shafferzeyn9710 ปีที่แล้ว

    can you add .searchable() this list view please. I want learn how to filter search data from API.You have very nice code teach talent.Thanks

    • @appstuff5778
      @appstuff5778  ปีที่แล้ว

      Your API would need to support searching functionality. This is just fetching a big block of JSON, so you need to do the filtering client side

  • @stephenaldous762
    @stephenaldous762 ปีที่แล้ว +1

    How to adjust this to support a POST http ?

    • @jasenhansen9788
      @jasenhansen9788 ปีที่แล้ว

      I second this request. If you post data to a server (database) via a PHP WebService, for example, is there an efficient way to confirm delivery.

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

    video starts at 2:16

  • @lorenzolaricchia6584
    @lorenzolaricchia6584 ปีที่แล้ว

    The link of STARTER PROJECT does not work

    • @jazz_devk1
      @jazz_devk1 ปีที่แล้ว +1

      dito link of STARTER PROJECT does not work

    • @appstuff5778
      @appstuff5778  ปีที่แล้ว

      Clicking the link should download the project to your downloads folder

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

    Network like a pro? this is joke right?