I'm new to using a SpliViewController in iOS and wanted to learn to use it since it is a part of an Apple tutorial for Mac Catalyst. The first tutorial is here: https://developer.apple.com/tutorials/mac-catalyst/turning-on-mac-catalyst.
It works fine on out of the box as it should for "non-plus" size iPhone simulators in both portrait and landscape. On "Plus" size phones it switches to a SVC in landscape, which causes lots of problems in some situations when switching from portrait to landscape and vice versa.
This is the screen when first loading in portrait on iPhone 7 Plus:
This what it looks like when a recipe is selected and shown in portrait then rotated to landscape Notice the recipe detail is where the recipe list should be and the detail should be on the right:
When you tap the back button the recipe list is shown. Notice the scrunched-up text. Tapping the expand button expands the detail view and it looks ok. Also notice how the tab bar items are spaced and barely fit the alloted space:
If you rotate back to portait and select a diiferent recipe, then rotate to landscape you get this:
This is just from running the app on iPhone the way it is programmed by Apple without any alterations.
I have completed the tutorial up to " Supporting the Touchbar" but of course the behavior has not changed for plus-sized iPhones.
This is a "Classic" SVC since it runs in iOS 13.4 I have tried messing with the SplitViewDelegate because that seems to be where I should be looking, but not getting anywhere even after spending a lot of time looking around the net. I'm hoping someone can look at the project and tell me what can be done to fix it. I know the tutorial is aimed at porting an iOS program to Mac but I do think it should run on iOS properly since that is where the porting starts. Thank you.