Swift API Calls for Beginners (Networking) – Async Await & JSON

Channel Avatar
Swift API Calls for Beginners (Networking) - Async Await & JSON
Swift API Calls for Beginners (Networking) – Async Await & JSON
Go to https://squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.

Learning how to write network calls as a beginner in Swift can be daunting. I remember it taking me a long time to fully grasp them. In this video I break down the basics of how network calls work and introduce you to the concept of JSON (JavaScript Object Notation).

I show you how to download data from the GitHub API with a network call and display a basic user profile page using that data. For this we use Swift Concurrency with Async Await.

This tutorial was created using Xcode 14 and iOS 16.

My iOS Dev Courses:

iOS Developer Interview Questions Playlist:

Sean Allen – https://twitter.com/seanallen_dev


Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Paul Hudson’s Hacking With Swift:

Donny Wals – Combine:

Mark Moeyken’s SwiftUI Books:

Objc.io Books (Thinking in SwiftUI & Advanced Swift):

#swift #softwaredeveloper #iosdeveloper

0:00 – Networking in iOS Apps
0:32 – This is hard!
1:06 – What is JSON?
2:06 – Using CURL to test a response
3:39 – Open API, OAuth, API Keys – Out of Scope
4:14 – My 4 Step Process for API Calls
5:10 – Using JSON to inform your design
5:46 – Create Models from JSON
9:13 – Network Call Code
18:10 – Networking Code Review
20:02 – Using the network call
22:48 – Connecting the UI

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Keywords: Swift, Swift Tutorial, iOS Developer, iOS Development, Swift Code Tutorial, Swift app tutorial, Swift API Calls, Swift Async Await, Network Calls in Swift, API Call in swift, swift networking, swift network calls, How to parse JSON in swift, async await swift, beginner network calls in swift, swift api call example, swift network call example, swift async await tutorial, swift async await example, Swift JSON

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *