'ARKit on different iPhones

I've been looking for an answer to whether ARKit, specifically ARSCNView, shows the same screen/view/scene size on all devices. I only have an iPhone XS so I am unable to test my ARKit app on other devices.

Currently I am overlaying it with an SKScene from SpriteKit, and in SpriteKit there are 2 different sizes all devices run on.

Through print statements I've been able to find that with the front-facing camera, thus presenting my face on-screen, and overlaying it with an SKScene, that the size of the screen/view/scene/etcetc is 375x812.

Does anyone happen to know if all devices present the same size with ARKit + SpriteKit overlay?



Solution 1:[1]

Of course different iPhone models present different resolutions. There's a big difference between iPhone's screen size and viewport size. Look at this table. In some cases viewport size is 1/9 of screen size, sometimes – 1/4. Though, some models have identical screen size and viewport size.

Device Screen Size Viewport Size
iPhone 12 Pro Max 1284 x 2778 428 x 926
iPhone X 1125 x 2436 375 x 812
iPhone SE 2 750 x 1334 375 x 667
iPhone 8 Plus 1080 x 1920 414 x 736
iPhone 6s 750 x 1334 375 x 667

For more details, you can read this SO post.

This guide gives you a visual representation.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1