Issue is also in the
RGBullsEye of the
final folder of
Play BullsEye navigates to the view of Bulls Eye
- Play once and then tap
Back which navigates back to the RGBullsEye
Play BullsEye now, is not navigating to
hi Pat! thanks! this seems to be a general problem with
NavigationLink in Simulator/Live Preview. See SwiftUI - NavigationLink inside Na… | Apple Developer Forums and NavigationLink inside of a navigat… | Apple Developer Forums
It’s not worth using the klutzy fix because the bug doesn’t appear on a device.
Thanks. Sorry that I did not look further.
I’ve just now run it on my XR, and it doesn’t behave well in split view navigation style. Either check the Portrait Device Orientation for the Target, or add
.navigationViewStyle(StackNavigationViewStyle()) after navigationBarTitle(_:) in ContentVIew.swift, to force it to use “normal” navigation. Then you can tap the Play BullsEye button again and again, and get a different random target value each time
It’s annoying to have the simulator out of sync with the device. We’re hoping Apple fixes