NavigationLink deprecated in iOS 16

Hello guys,
I am following along the CodeHistory app and on one of the last stages they ask to set a background modifier at the end of a ZStack to include a NavigationLink to the GameOver view.

Unfortunately the NavigationLink used is now deprecated on iOS 16 devices and this makes the project to not compile.
See below pictures:

Any idea on how to get around this?

1 Like