Hi, I'm new in coding :),
I have a struct that contains variables in a .swift file.
I need these datas on another .swift file. How can I import them?
(They're on a SwiftUI based app)
I have this on the first .swift file
I have to use the infoProduct var on the other file
Thanks
I have a struct that contains variables in a .swift file.
I need these datas on another .swift file. How can I import them?
(They're on a SwiftUI based app)
I have this on the first .swift file
Code Block struct MyVariables { static var infoProduct = "" static var idProduct = "" }
I have to use the infoProduct var on the other file
Thanks