Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Window size stuck at 320x480 due to lack of UILaunchStoryboard #91

Closed
simlay opened this issue Aug 19, 2020 · 0 comments · Fixed by #108 or sonos/dinghy#152
Closed

[iOS] Window size stuck at 320x480 due to lack of UILaunchStoryboard #91

simlay opened this issue Aug 19, 2020 · 0 comments · Fixed by #108 or sonos/dinghy#152

Comments

@simlay
Copy link
Contributor

simlay commented Aug 19, 2020

I've been meaning to write this issue for a few weeks but can't seem to find the exact stack overflow page(s) that lead me to this issue so I'm doing this a bit from memory.

Anyway, I've been using winit as the main event loop and window creation tool for my projects and the main issue I've had consistently is that the iOS app screen resolution is 320x480 if I take the same app and bundle it with xcodegen, it doesn't have this issue. There are a number of stack over pages mentioning similar issue:

I've tested both cargo-bundle and the same code using xcodegen testing the size of of UIScreen::mainScreen().bounds() with uikit-sys.

Frankly, the Xcode release notes aren't super clear on what's being deprecated but what I've inferred is that the screen size was based on using an image per phone but now it's based on something mildly magic using the UILaunchStoryboard. If someone knows more about this I'm all ears.

Anyway, I just wanted to write this down for the next person who has this type of issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant