Search Issue Tracker
Duplicate
Votes
0
Found in
2018.4
2018.4.22f1
2020.2
Issue ID
1246286
Regression
No
[iOS] Storyboard switches to portrait after a second when the device orientation is set to landscape
How to reproduce:
1. Open the attached Storyboard.zip project
2. Build for iOS and deploy the Xcode project to the device
Expected: Storyboard stays landscape
Actual: Storyboard switches to portrait (see the 20200511_140255.mp4 attached)
Reproducible with: 2018.4, 2020.2
Notes:
- The issue doesn't reproduce if I run the app directly from the Xcode project, but I can reproduce it if I disconnect the phone and then run the installed app
-
Resolution Note:
This is a "by design" issue with storyboards: Apple assumes that launch storyboards are handling everything (all orientations), as you cannot tweak the startup view controller at all.
To make it work, with builtin storyboards we created two views with variations, that agree with what they show, so when ios decides to change - nothing is changing visually.
There is a catch, though, as you do variations NOT on orientation but on size traits (compact vs regular), and from experimentation it seems that on iphone what is important is the height class: regular vs compact does the trick (portrait vs landscape).
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- GC.Alloc called by HDRenderPipeline.LensFlareMergeOcclusionDataDrivenPass() when playing the default HDRP Sample Template project
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
This is a duplicate of issue #1190428