I have a LazyVStack in my UI and after device rotation the rows showing are not the same as prior to rotation. Not even close to those rows.
Prior to SwiftUI I was handling this by getting the last visible row in viewWillTransition and then scrolling to it after the orientationDidChangeNotification.
I have not found any way in SwiftUI of detecting when the device will change so that I can get the last row index and scroll to it after rotation.
Is there any equivalent of viewWillTransition or any strategy I can employ to get that functionality?