Post

Replies

Boosts

Views

Activity

Reply to Peut-on faire un tableau dans une classe
import Foundation struct Brand: Codable {     let name: String     let model: [String]     let image: String     let like: Bool } let sample = """ {    "name": "First Name",    "model": ["CAR1", "CAR2", "CAR3"],    "image": "some.png",    "like": false } """.data(using: .utf8)! let brand = try JSONDecoder().decode(Brand.self, from: sample) print(brand.name)
Topic: App & System Services SubTopic: General Tags:
Dec ’21