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

iPhone 12/13 mini logical resolution is incorrect #7

Closed
paulozoom opened this issue Dec 10, 2021 · 3 comments
Closed

iPhone 12/13 mini logical resolution is incorrect #7

paulozoom opened this issue Dec 10, 2021 · 3 comments

Comments

@paulozoom
Copy link

paulozoom commented Dec 10, 2021

The logical resolution of the iPhone 13 mini and 12 mini is listed at 360 × 780, but it’s actually 375 × 812 (same as 11 Pro, XS, X), but then downsampled to 360 × 780. This is similar to the iPhone plus models.

@ebelinski
Copy link
Owner

ebelinski commented Jan 6, 2022

Thank you for letting me know about this. I'm planning on making changes to the iPhone 12/13 mini resolution, but I'm still trying to understand how exactly the quirk for the mini devices manifests itself. As far as I can tell, the situation is similar to the iPhone Plus models, but not identical.

Specifically, if you check in a simulator, these are the scale and width values you get for iPhone 13 mini:

UIScreen.main.scale: 3.0
UIScreen.main.nativeScale: 2.88
UIScreen.main.bounds.width: 375.0
UIScreen.main.bounds.size.width: 375.0
UIScreen.main.nativeBounds.width: 1080.0
UIScreen.main.nativeBounds.size.width: 1080.0

But for iPhone 8 Plus, you get these values:

UIScreen.main.scale: 3.0
UIScreen.main.nativeScale: 3.0
UIScreen.main.bounds.width: 414.0
UIScreen.main.bounds.size.width: 414.0
UIScreen.main.nativeBounds.width: 1242.0
UIScreen.main.nativeBounds.size.width: 1242.0

So the nativeScale is 3 for plus models but 2.88 for mini models. I'm still trying to understand what this means exactly for the figures on the website.

@ebelinski
Copy link
Owner

@paulozoom Ok so I updated the iPhone 13 mini logical resolution to 375 × 812, updated the scale factor to @2.88–3x and added a footnote:

iPhone 13 mini and equivalently sized devices have a logical scale factor of 3x but a native scale factor of 2.88x. The logical resolution of 375 × 812 is multiplied by 2.88 to reach the actual resolution of 1080 × 2340.

But I'm not totally sure if this footnote describes the situation correctly. I'm open to suggested changes.

@paulozoom
Copy link
Author

I wasn’t aware of this discrepancy on nativeScale, but I’m not a iOS developer. I do wonder if Display Zoom could be playing a role here? WDYT?

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

No branches or pull requests

2 participants