I have this problem too. But also how do you use DocumentGroupLaunchScene with the prepareDocument closure? It's crashing for me when I do something like this:
DocumentGroupLaunchScene(Text("MyApp")) {
NewDocumentButton("New")
NewDocumentButton("New...", contentType: .myDocument) {
try await withCheckedThrowingContinuation { continuation in
documentCreationContinuation = continuation
showTemplatePicker = true
}
}
.fullScreenCover(isPresented: $showTemplatePicker) {
TemplatePicker(documentCreationContinuation: $documentCreationContinuation)
}
} background: {
Image("BackgroundImage")
.resizable()
}
}