I kept the #Preview macro by changing it to this, but with warnings about losing global actor 'MainActor':
#Preview { @MainActor in
ContentView()
.frame(minWidth: 500, minHeight: 500)
.modelContainer(previewContainer)
}
Topic:
App & System Services
SubTopic:
iCloud
Tags: