'Error when trying to open my Preview in Swiftui [duplicate]

iam working with swiftui for the first time. iam trying to make a small social network app, so i created a navigation bar which lays over the other views to navigate between them. But when iam trying to creat a Preview a Problem screen pops up, when iam running the app in the simulator everything work fine. enter image description here

enter image description here enter image description here

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source