Here is the two swift files I came up with.
//
// videoFeed.swift
// GetData
//
// Created by Gregory Kaiser on 9/6/22.
//
import Foundation
struct videoFeed: Codable {
var error: Bool
var message: String?
struct response: Codable{
var totalRows: String?
var rows: [row]
}
Here is the second one
//
// vids.swift
// GetData
//
// Created by Gregory Kaiser on 9/6/22.
//
import Foundation
struct row: Codable {
var title:String?
var desciption:String?
var Poster:String?
struct videos: Codable {
struct mp4: Codable {
var _480: String?
}
}
}
Can someone tell me if these are correct? And how do I access each item grabbing the link in videos.mp4.480?
Thank you!
}
Topic:
Programming Languages
SubTopic:
Swift
Tags: