Can't find NavigationStack in autocomplete and can't run playground apps on MacOS

I'm trying to work on editing grids sample app in playgrounds. It works fine on my iPad but it is not working on my Mac. I can see the code but I get an error message that minimum deployment target is 16 and there is no preview showing. MacOS is up to 13 no? So I guess it is refering to iPad OS 16? How do I fix this on my Mac?

Also the code references NavigationStack which now replaced NavigationView but in Xcode it doesn't show up in autocomplete and the compiler doesn't recognize it. When I go into apple store both xcode and playground just say "open", there is no update option.

What do I do?

Answered by szymczyk in 735032022

Can you run the app on the Mac version of the Swift Playgrounds app?

What version of Xcode are you running? You need Xcode 14.1 to use NavigationStack on Mac. You can download and install Xcode 14.1 from Apple's developer site. You can find a direct download link at Xcode Releases.

https://xcodereleases.com/

Accepted Answer

Can you run the app on the Mac version of the Swift Playgrounds app?

What version of Xcode are you running? You need Xcode 14.1 to use NavigationStack on Mac. You can download and install Xcode 14.1 from Apple's developer site. You can find a direct download link at Xcode Releases.

https://xcodereleases.com/

Can't find NavigationStack in autocomplete and can't run playground apps on MacOS
 
 
Q