Git Product home page Git Product logo

Comments (3)

ebelinski avatar ebelinski commented on May 24, 2024

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.

ebelinski avatar ebelinski commented on May 24, 2024

@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.

paulozoom avatar paulozoom commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.