Comments (3)
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.
from iosref.
@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.
from iosref.
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?
from iosref.
Related Issues (14)
- Migrate from Bootstrap to Tailwind
- iPhone 13 Pro Hardware string incorrect HOT 1
- Suggestions HOT 1
- iPhone 14 and Plus having wrong CPU HOT 1
- How are `vintage` and `obsolete` defined? HOT 2
- Hh
- Include Display Zoomed nativeScale factor
- Add camera tech by device HOT 3
- CSV format HOT 1
- Current/max tvOS version is 17 not 16
- Add ZHARDWAREMODEL/OEM ID/Internal Name/BoardConfig
- Include VisionOS
- Incorrectly converts `0xEBF1F7` to `Color(red: NaN, green: 0.922, blue: 0.945, opacity: 0.969)`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iosref.