Item shared with you: "A SpacePhoto contains information about a single day's photo record:;HTTPS including its date, a title, description, etc. struct SpacePhoto { / The title of the astronomical photo. var title: String / A description of the astronomical photo. var description: String / The date the given entry was added to the catalog. var date: Date / A link to the image contained within the entry. var url: URL } extension SpacePhoto: Codable { enum CodingKeys: String, CodingKey { case title case description = "explanation" case date case url } init(data: Data) throws { let decoder = JSONDecoder() decoder.dateDecodingStrategy = .formatted(SpacePhoto.dateFormatter) self = try JSONDecoder() .decode(SpacePhoto.self, from: data) } } extension SpacePhoto: Identifiable { var id: Date { date } } extension SpacePhoto { static let urlTemplate = "https:/example.com/photos" static let dateFormat = "yyyy-MM-dd" static var dateFormatter: DateFormatter { let formatter = DateFormatter() format
optimi...@gmail.com shared an item optimi...@gmail.com has shared the following item: /// A