How to convert to image with base64 string SwiftUI to Image()
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
How do I get this data in the contentView.
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