I've the same problem.
Preview on iOs scheme is working fine but if I switch to macOS scheme I got the same error.
Did you find a fix?
Post
Replies
Boosts
Views
Activity
I'm looking for the same solution.
I found a good start here
https://www.hackingwithswift.com/quick-start/swiftui/how-to-add-and-remove-views-with-a-transition
Regards
JC