For folks wondering, I had to do this number:
.alert("Please confirm model deletion. Cannot be undone.", isPresented: $showDeletionConfirmation, actions: {
Button("Confirm", role: .destructive) {
record.deleteAllTheThings()
dismiss()
Task {
await MainActor.run {
context.delete(record)
try? context.save()
}
}
}
Button("Cancel", role: .cancel) { }
})
And dismiss is in my view as:
@Environment(\.dismiss) var dismiss
Post
Replies
Boosts
Views
Activity
I see this issue too
I comment out any views and sessions and methods with object capture with:
#if targetEnvironment(simulator)
#endif
It's tedious but it works.
Having the same issue. All developer agreements signed, multiple unused Bundle IDs created, signed out, signed back in. Still blank.