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
323
Jan ’22
json decoding data save to structure on another file
How do I get this data in the contentView.
Replies
0
Boosts
0
Views
340
Activity
Jan ’22
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
Replies
1
Boosts
0
Views
323
Activity
Jan ’22
convert base64 string to image on SwiftUI
How to convert to image with base64 string SwiftUI to Image()
Replies
1
Boosts
0
Views
5.7k
Activity
Jan ’22