NavigationStack is only available in OS 16.0

Error: ‘NavigationStack’ is only available in 16.0 while building the swift ui project.


The solution to fix the above issue is to change the minimum deplyment target to 16.

Select your project.

Click General tab.

Select your target.

Change the Minimum Deployments dropdiown to 16.