Post

Replies

Boosts

Views

Activity

How to load data from a structure when opening a view
I click the authorize button and I get json data. struct User: Decodable { var a: String enum CodingKeys: String, CodingKey { case a = "Date of Birth" }  init(from decoder: Decoder) throws {     let container = try decoder.container(keyedBy:CodingKeys.self) a = try container.decode(String.self, forKey: .a) } } after clicking the button, I go to the main view and there how to get data from the User structure that was decoded
1
0
287
Dec ’21