I have this Object Array mention below . Can someone please guide me how can i access various values inside the Object Array.
CellInfo(date: "Sep 2018",
audioFileInfos: [In.PtV.AudioFileInfo(urlString: "https://GeorgeB.m4a",
text: "9/11")
])
i want to Access Date ,urlString and text
struct AudioFileInfo {
let urlString: String
let text: String
init(dict: [String: String]) {
urlString = dict["AudioFileURL"] ?? ""
text = dict["Title"] ?? ""
}
}
struct CellInfo {
let date: String
let audioFileInfos: [AudioFileInfo]
}
AudioFileInfomethod return type is. Please put more info i.e what is the return of theAudioFileInfomethod is. If that is a own declared class, then does it have any text property ?