Ir para o conteúdo principal
0

Por enquanto, esta lição está em inglês.

Data that sticks

State inside a view disappears when the app closes. SwiftData stores your objects on the device, so notes, scores and settings are still there tomorrow. You describe the data as Swift classes, and SwiftData does the storage.