Adjust view hierarchy after view transition #1612
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are multiple reports of crashes since iOS 17.0 that happen in the SplitViewController but outside of our code. After trying to reproduce the issue, I was able the generate the following crash:
Steps to reproduce were:
Best reproducible was while starting from debugger, because of the slight delay at the start of the app. It only happens when switch to the ChatViewController happens while transitioning to landscape mode. In this case the navigationBar wrongfully references the placeholderView. After trying to return to the conversation list, the app crashes, because the placeholderView is referenced another time. Before iOS 17 the app would not crash, but we have seen cases, where the navigationBar was not correctly displayed, so it might be the same root cause.