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

The tag wwdc21-10002 is not relevant for your question. Using the right tag would help you getting the right answers sooner. Also important is showing enough code. Can you show enough code to reproduce your issue?

How to load data from a structure when opening a view
 
 
Q