Remote JSON Parsing & Download using SwiftUI - Learn SwiftUI for iOS

preview_player
Показать описание

In this learn to code video, we create an iOS app using XCode and will learn how to take data that exists on a remote database (MySQL) and retrieve that data (by calling a PHP web service) and downloading that data into our app to display in a List in SwiftUI.

We use JSONDecoder to convert the downloaded data from JSON into an array of objects that we will create ourself.

We use URLSession's datatask method to retrieve the JSON data from the PHP script.
Рекомендации по теме
Комментарии
Автор

Hi, I managed to figure it out... however any help in showing an Alert to show that the App could not retrieve the data from the Json url. Please..

ShineyOz
join shbcf.ru