twostraws / HackingWithSwift

The project source code for Hacking with iOS.
The Unlicense
5.88k stars 3.28k forks source link

SwiftUI Project 19 Resort List's NavigationLink issue on Max-sized iPhone iOS 16+ #85

Open dpaulandri opened 2 years ago

dpaulandri commented 2 years ago

The 'NavigationLink' on the Resort List seems to be broken/unresponsive on Max-sized iPhone iOS 16+ when the User change the device orientation back to Portrait RIGHT AFTER navigating to a ResortView in Landscape. Normal sized iPhones are not affected.

Steps to replicate issue:

  1. Rotate Max-sized iPhone to Landscape orientation
  2. Navigate to any random ResortView via the SideBar
  3. Rotate Max-sized iPhone back to Portrait orientation
  4. Navigate back to Resort List view
  5. Tap any Resort, NavigationLink will not show the detailed ResortVIew as it was supposed to

Considering the course was written for iOS 15, has this got to do with 'NavigationView' being "softly" depreciated on iOS 16?

Brai-hit commented 2 months ago

Wow what an incredible piece information