iPad: Fix split view not working after the initial launch #15985
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.

WOOMOB-1009
Description
When the Woo app is initially launched and user logs in, Orders and Products tab are not displayed in a split view. The app needs to be killed and relaunched for a split view to appeared.
The iPadOS 18 + Xcode 16 hack was not working properly on first launch after login because it requires view.window to be available to access the window's trait collection. It turns all the views into
.compact, not just the tab bar itself.During initial login flow:
Fixed by adding fixTabBarTraitCollectionOnIpadForiOS18() call to viewDidAppear() which is guaranteed to run after the view controller is in the window hierarchy and view.window is available.
Steps to reproduce
Testing information
Tested on iPad Air 18.5 simulator and iPadAir 26 device
Screenshots
Simulator.Screen.Recording.-.iPad.Air.11-inch.M3.-.2025-08-06.at.20.39.54.mov
RELEASE-NOTES.txtif necessary.