Загрузка...

SwiftUI example project - Astronomy Picture of the Day API - Part 1 - MVVM and Combine framework

An example project that demonstrates fetching data from the network with Combine and SwiftUI.
In this tutorial, we will learn how to make a REST API call in Swift. We will talk about URLSession to make fetch requests. Then we will parse the returned JSON data with Codable and display the data.

APOD API https://api.nasa.gov

00:00 Introduction
02:39 project setup
13:18 Networking with JSON and Decodable
25:35 Introduction to Multithreading and Grand Central Dispatch
30:16 SwiftUI preview with data for the Networking layers
36:08 Fetching images
40:13 Changing the date for the APOD
53:38 Add an loading animation

PART 2 https://youtu.be/bS_XrFyX8Bk

⬇️ download project files https://github.com/gahntpo/AstroPic

If you liked what you learned and you want to see more, check out one of my courses!
👨‍💻 my SwiftUI course https://school.swiftyplace.com/courses/swiftui-course
👨‍💻 my Core Data and SwiftUI course https://school.swiftyplace.com/courses/swiftui-and-core-data
👩🏻‍💻 Combine course
https://school.swiftyplace.com/courses/master-combine-framework

#SwiftUI #Networking # CombineFramework #MVVM

Видео SwiftUI example project - Astronomy Picture of the Day API - Part 1 - MVVM and Combine framework канала Karin Prater
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять