Storing user settings with UserDefaults – iExpense SwiftUI Tutorial 5/11

preview_player
Показать описание

Other parts in Project 7:

5. Storing user settings with UserDefaults: This video

Рекомендации по теме
Комментарии
Автор

Okay, that was much easier than I thought. The internet is full of tutorials about SwiftData, but this is the first vid I watched about storing simple values like config strings, integers, OAuth-keys and stuff like that. Extremely useful actually.Thank you!

sagmalrasmus
Автор

Im using 3 Pickers componenet with Segmented Style with this approach to save the last clicks on any of pickers but there is wired bug with it sometimes it is saving the data and loading on the UI and sometimes not it is very simple code but not working, can you help ?

aliasadi
Автор

Brilliant video. I wish I’d discovered this before wasting time battling with the much hyped SwiftData. I wish the WWDDC SwiftData vid had mentioned this capability, which is clearly a better option for singular data.
🐴Horses for courses.

AlanRick
Автор

bro this sheeesh crazy it worked like a buttercup with chicken holybadoly nice ty

ags
Автор

Thanks Paul, this is a very useful video! I'm wondering I have only a few pieces of user data I'd like to save to the users device, how do I decide between using User Defaults and AppStorage?

HyroDuran
Автор

Can I use @AppStorage twice in my app in different places with the same key?

idonov
visit shbcf.ru