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

  Переглядів 13,554

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 ...

КОМЕНТАРІ: 40
@scarlet5742
@scarlet5742 9 місяців тому
love the content, keep up the good work!
@anonanon7249
@anonanon7249 Рік тому
Thank you just what I needed please post more content!
@vladislav2587
@vladislav2587 8 місяців тому
It’s gold. Thank you!
@ssaai
@ssaai 8 місяців тому
Please make a tutorial about access and refresh token
@BABEENGINEER
@BABEENGINEER 21 день тому
amazing tutorial, we love it 💕🔥
@filipp7611
@filipp7611 8 місяців тому
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.
@rrezzz
@rrezzz 7 місяців тому
You are the best👌🏻
@galavarezzzk3610
@galavarezzzk3610 2 місяці тому
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!
@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
@chings228
@chings228 8 місяців тому
I was a obj-c programmer , so many swiftui thing need to pick up . you tutorial is so helpful ,thx
@appstuff5778
@appstuff5778 8 місяців тому
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
@user-qz9mm2eg8l
@user-qz9mm2eg8l 4 місяці тому
Beautiful vid
@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?
@LukePighetti
@LukePighetti Рік тому
28:43 could we create an extension on ForEach called onLastAppear() and remove some of the plumbing logic?
@krishnavivek9254
@krishnavivek9254 8 місяців тому
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 8 місяців тому
I work for a very large company, and almost all of our networking code was refactored to use async await
@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
@okeyshourovroy2769
@okeyshourovroy2769 Рік тому
Can you please make a video on video calling with swiftui without agora or other paid tools. Using native solutions like RTC. 🙏
@josejaimefelixgarciagarcia8884
@josejaimefelixgarciagarcia8884 7 місяців тому
9:32, when you say this function is going to be async, does that mean it just runs on a different thread?
@LukePighetti
@LukePighetti Рік тому
4:51 what does the // MARK: comment do?
@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 11 місяців тому
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 Рік тому
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 8 місяців тому
let page = coins.count / pageLimit + 1. should help you
@Aureliola
@Aureliola Рік тому
Long time no see you. Hope you doing well
@ghbbbb8220
@ghbbbb8220 Рік тому
W bro
@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.
@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
@kujtims
@kujtims Місяць тому
video starts at 2:16
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Add a reusable Networking layer | SwiftUI Crypto App #7
20:55
Swiftful Thinking
Переглядів 15 тис.
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Переглядів 682 тис.
How to Create a Login and Sign Up Page in Your iOS App for Beginners
28:18
SwiftUI API / JSON Tutorial with Async Await Example
9:52
Logan Koshenka
Переглядів 23 тис.
I learned to code from scratch in 1 year. Here's how.
41:55
Thomas Frank
Переглядів 305 тис.
How To Make Money with APIs & AI (Full Guide)
12:52
Hasan Aboul Hasan
Переглядів 236 тис.
Video Feed With SwiftUI + Firebase | Async/Await
37:38
AppStuff
Переглядів 4,9 тис.
СЛОМАЛСЯ ПК ЗА 2000$🤬
0:59
Корнеич
Переглядів 2,1 млн
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Переглядів 3,2 млн
Samsung UE40D5520RU перезагружается, замена nand памяти
0:46
Слава 100пудово!
Переглядів 3,7 млн
Apple, как вас уделал Тюменский бренд CaseGuru? Конец удивил #caseguru #кейсгуру #наушники
0:54
CaseGuru / Наушники / Пылесосы / Смарт-часы /
Переглядів 3,3 млн