Reply to Error after adding previewContainer during code-along I asked Chatgpt for this question, and it told me this: #Preview { MainActor.assumeIsolated { ContentView() .frame(minWidth: 500, minHeight: 500) .modelContainer(previewContainer) } } It worked. App & System Services iCloud & Data Jun ’23