SwiftUI example project - Astronomy Picture of the Day API - Part 1 - MVVM and Combine framework
Автор: Karin Prater
Загружено: 2022-01-11
Просмотров: 3759
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 • SwiftUI example project - Astronomy Pictur...
⬇️ 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/course...
👨💻 my Core Data and SwiftUI course https://school.swiftyplace.com/course...
👩🏻💻 Combine course
https://school.swiftyplace.com/course...
#SwiftUI #Networking # CombineFramework #MVVM
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: