Загрузка...

Networking in UIKit (2025): Modern Fetching with URLSession & JSON Decoders

🚀 Ditch the messy callbacks! Master networking in UIKit with Swift’s modern async/await API!
Links from Tutorial: https://picsum.photos/
https://jsonplaceholder.typicode.com/
🔹 What You’ll Learn: ✅ Why async/await is a game-changer for iOS networking
✅ How to fetch JSON data with URLSession
✅ Display API results in a UIImageView, and UITableView
✅ The best way to handle errors with async code
✅ How to optimize UIKit apps with async updates

Clone or download the full demo project here:
📁 GitHub Repo: https://github.com/NDCSwift/UIKitNetworkingExample

🔥 Download My Project Files & More! 🔥
👉 Get the source code for this project & other Swift resources here:
🔗 https://ndcswift.github.io/Swift-Projects/
Subscribe for more bite-sized lessons and full tutorials on Swift, SwiftUI, and UIKit.

Links:
Xcode: https://developer.apple.com/xcode/
https://developer.apple.com/documentation/uikit/uiscrollview

Timestamps:
00:00 - Intro to Async/Await
01:25 - Project Setup
01:38 - Loading a remote image from URL
02:22 - Setting up imageview
03:18 - Fetching Image
06:15 - Grabbing the image from a URL
06:56 - using Picsum
08:43 - Testing
08:59 - using any image URL
10:19 - Using APIs (JSON)
10:49 - Grabbing the image from a URL
11:42 - JSON Handler
15:11 - Displaying our API in a tableview
20:02 - Testing
20:46 - Wrap up

Видео Networking in UIKit (2025): Modern Fetching with URLSession & JSON Decoders канала NDC
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять