SwiftUI API / JSON Tutorial with Async Await Example

preview_player
Показать описание
This SwiftUI API / JSON / Networking tutorial walks you through how to properly use swiftui json parsing after fetching the data through an API. We create a struct and use swiftui codable, along with async / await to fill our list with the parsed data. SwiftUI is one of the best ways for beginners to learn how to create their own app in iOS / Swift. You will need Xcode to complete this tutorial.

Want to see more?

Follow me and say hello!

#SwiftUI #API #JSON #Tutorial #Networking
Рекомендации по теме
Комментарии
Автор

I recently hit 800 subscribers - you guys are awesome!

logankoshenka
Автор

Idk who you are but I've watched a million tutorials about making async/await calls in swift, with varying degrees of success. I started doubting my life as a developer because it was so hard to understand, especially, coming from JavaScript. Idk why others feel its so necessary to over complicate things but I am so thankful for this video that I randomly found on a reddit thread!!

rachelradford
Автор

Just thought id help the future Swift learners out there: this was the simplest and only tutorial that actually worked for my api.

chrisking
Автор

Excellent video. As a retired C++ programmer, following ur example, I was able to make an app for my day trading needs. Thank you so much. Your code is short and precise, right at the points. You must be a great engineer!

samtree
Автор

I have been watching many tutors on youtube and bro you are the funniest, now Im gonna have to watch all of your videos.. thank you bruther :D

RamazanOzerr
Автор

Man I hope you remember me from a previous comment, I’ve been binge watching your videos and they are hilarious (and useful), I’m laughing at every video ending 😂

d.rew.
Автор

This tutorial is truly amazing. I couldn't wrap my head around the async/await pattern no matter how many articles for "Swift beginners" I've read, but this video finally made it click. Thank you very much for the awesome tutorial :)

buresdv
Автор

Thankyou so much bro! I am a react native developer and just started learning SwiftUI, been looking for a solution to fetch data from an API but the nasty errors in xcode did not leave me alone. This solution worked well!!

saadsiddiqui
Автор

Thanks for this easy to follow tutorial, exactly what I was looking for!

toddmarshall
Автор

One more question, where would you put .resume if one had too? Thanks again.

danuff
Автор

Nice video thank you.What if I have a JSON file with all my data can I upload it to a server and how would I read the data from this file and not from an api site? thank u

ecptavares
Автор

Hi....Fantastic Tutorial. I'm new to APIs. One quick question, why didn't you include the .resume in the code? Doesn't async need it? Thanks.

danuff
Автор

Great short tutorial. I expanded on it by adding in a page displaying characters with names and clipped images.

johnpill
Автор

Canvas Simulator in XCode is so unnervingly slow, I wonder why they don’t include the Swift Playgrounds previewer in XCode.
It’s so much faster.

thomasanderson
Автор

I always look forward to your videos 😆 Thank you for the great tutorial!

alexdiaz
Автор

Simple and nice way of explaining Async/await, thanks Logan
Appreciate your regular working on Swiftui, helped me a lot.

mahtabhasan
Автор

omg this is soooo clearly explained. I love you

shinygoldfat
Автор

Another great, to the point, explanation. Please keep making these, they're great.

mattmarshall
Автор

i have error like this "Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")" anyone know why ??

HanjayaWijangga
Автор

Awesome! I’d love to your simple example for API call. Thanks a lot!!

codingkim
join shbcf.ru