Перейти к содержимому

How to Save Colors with UserDefaults in SwiftUI Tutorial (2022)

Indently

0:00 / 0:00

How to Save Colors with UserDefaults in SwiftUI Tutorial (2022)

3 454 просмотра · 4 г. назад
Indently
370 тыс. подписчиков
3 454 просмотра · 4 г. назад
Today I will be showing you how you can store any color you want to a database. For this example we will be storing a color value returned from ColorPicker in SwiftUI into UserDefaults. Source code: https://github.com/federicocotogno/St... 00:00 App Demo 00:54 Color Struct 04:41 ContentView 06:56 Running the app