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

  Рет қаралды 15,081

AppStuff

AppStuff

Жыл бұрын

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 Жыл бұрын
Thank you just what I needed please post more content!
@scarlet5742
@scarlet5742 11 ай бұрын
love the content, keep up the good work!
@vladislav2587
@vladislav2587 11 ай бұрын
It’s gold. Thank you!
@galavarezzzk3610
@galavarezzzk3610 4 ай бұрын
thank you for the video. Great tutorial!
@rank1macro
@rank1macro Жыл бұрын
NEW VIDEO FROM MY FAV TEACHER & MENTOR. Thanks brother, happy new year 🎉
@appstuff5778
@appstuff5778 Жыл бұрын
Happy new year to you too man!
@lukemorrice8692
@lukemorrice8692 21 күн бұрын
This is amazing, thank you
@BABEENGINEER
@BABEENGINEER 2 ай бұрын
amazing tutorial, we love it 💕🔥
@user-qz9mm2eg8l
@user-qz9mm2eg8l 6 ай бұрын
Beautiful vid
@rrezzz
@rrezzz 9 ай бұрын
You are the best👌🏻
@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
@filipp7611
@filipp7611 10 ай бұрын
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 ай бұрын
Please make a tutorial about access and refresh token
@garywkfung
@garywkfung Жыл бұрын
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
@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?
@LukePighetti
@LukePighetti Жыл бұрын
22:35 Would it handle more cases if we did showAlert = true instead of showAlert.toggle()?
@LukePighetti
@LukePighetti Жыл бұрын
28:43 could we create an extension on ForEach called onLastAppear() and remove some of the plumbing logic?
@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 Жыл бұрын
It’s just not really necessary to implement an entire swift package that essentially does the same thing
@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.
@okeyshourovroy2769
@okeyshourovroy2769 Жыл бұрын
Can you please make a video on video calling with swiftui without agora or other paid tools. Using native solutions like RTC. 🙏
@LukePighetti
@LukePighetti Жыл бұрын
4:51 what does the // MARK: comment do?
@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?
@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 ай бұрын
I work for a very large company, and almost all of our networking code was refactored to use async await
@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 11 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
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?
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
3D Content in iOS & visionOS apps with Spline (Xcode & SwiftUI)
16:21
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 53 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
SwiftUI API / JSON Tutorial with Async Await Example
9:52
Logan Koshenka
Рет қаралды 24 М.
Networking in iOS with URLSession | JSON and Image data
22:46
Sam Meech-Ward
Рет қаралды 10 М.
Samsung Z Flip/Fold 6, Watch Ultra, Buds Pro and Ring Impressions!
11:02
Marques Brownlee
Рет қаралды 3 МЛН
🔴 Let's Build Tinder with SwiftUI | iOS 17 | Dating App
3:44:05
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 6 МЛН
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 1,6 МЛН
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 1,6 МЛН