본문으로 건너뛰기
0

이 레슨은 당분간 영어로 제공돼요.

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.