Context
- Objective-C code for the most part
- iOS 14.8
- iPhone X
- Xcode 14.0.1
I have an app that does the following:
- User visits portrait orientation page
- Rotating the phone transitions the page to landscape mode. We then hide the first row in a collection view.
- Tapping a collection view row presents a special landscape VC
- Tapping a navigation button dismisses the special landscape VC
The expected behavior is to reveal the parent landscape VC underneath the special VC.
When performing these actions while running the app in Xcode, the application performs as expected and probably has for years.
However, when performing the same actions when NOT attached to Xcode, viewWillTransitionToSize() is called with a portrait orientation size which causes the VC to animate and render the parent view incorrectly.
I did discover that if I started the app unattached, then "Attach to Process" in Xcode, I can get the same incorrect viewWillTransitionToSize() call to happen.