Комментарии:
Do you use UserDefaults in UIKit and SwiftUI too?
ОтветитьError encountered in downloading the resources: Error 1016
Ответитьthanks
ОтветитьIn certain sense, swiftUI is more powerful because the AppStorage allows saving of a struct or class. But it doesn't seem to be the case for UIkit.
ОтветитьTHANK YOU FOR ALSO INCLUDING SWIFTUI!
ОтветитьHow can I save multiple "Data Structures" objects in UserDefaults? I am using UserDefaults to save different User routes, for this I create a Data Structure with the fields that correspond to a route (date, street, name, latitude, longitude) so far I have been able to save the structure with UserDefaults, however when I want adding a new route deletes the previous one and only keeps the last one, how can I store all the routes without deleting the previous ones? HELP!!!!
ОтветитьThanks sir. 588 views... You deserve more.
ОтветитьHello ,
I'm using UserDefaults to save scores for different game levels but when new score is updated the rest update to the same value , tried it with an array it crashed saying "index out of range "
We can save in UserDefault this object - user = [User(name: "Bob", secondName: "Macdonald"), User(name: "Jacob", secondName: "Arthur")] Thanks for answer )
ОтветитьThank you for video )
ОтветитьYou don't need to quit Xcode after creating the AppGroup. Just keep tapping refresh and it will eventually turn from red to selected.
ОтветитьCool! btw how do you think, what is the best way to start learning swiftUI?
ОтветитьExcellent tutorial!! May i know the difference between @Published and @Published("profile")?
Ответить