iphone 14 pro screen size compared to XR
Is the iPhone XR really 6 inches? - Apple Community
ios - Physical dimensions Iphone XS Max and Iphone XR screens - Stack Overflow
iPhone 16 Base People - Couple of comparison questions related to XR
Videos
I just received a surprising gift, iphone 14 pro. Great timing ⏱️😂. Anyway, just want to show the screen size comparison. Both 6.1”. 14 pro has much higher pixel density. But XR can display more content on the same screen. I found it weird. I still love my XR. It is an old friend whom I see first every morning and last every night. And still in near perfect condition.
EDIT :
I think you have wrong simulator selected. The XS Max does give correct values as per your expectation.
Heres a simple swift code (check nativeBounds for actual size) :
print("Name:\t\(UIDevice.current.name)")
print("Size:\t\(UIScreen.main.bounds.size)")
print("Scale:\t\(UIScreen.main.scale)")
print("Native:\t\(UIScreen.main.nativeBounds.size)")
And heres the output from all four X simulators
Name: iPhone X
Size: (375.0, 812.0)
Scale: 3.0
Native: (1125.0, 2436.0)
Name: iPhone XR
Size: (414.0, 896.0)
Scale: 2.0
Native: (828.0, 1792.0)
Name: iPhone XS
Size: (375.0, 812.0)
Scale: 3.0
Native: (1125.0, 2436.0)
Name: iPhone XS Max
Size: (414.0, 896.0)
Scale: 3.0
Native: (1242.0, 2688.0)
Original answer :
DeviceDisplay.ScreenMetrics in Xamarin.Essentials, is a simple bounds * scale calculation. (Ref : source code)
Scale documentation clearly states :
The default logical coordinate space is measured using points.
You can see from resolutions reference, that Points measurement for XS max and XR is exactly the same (although theres difference in pixel measurement).
This is what apple intends us to use for simplicity and avoid android like fragmentation in code (but theres 3 sizes already .. hmmph).
In conclusion, for any app / code related discussion, just refer to the points (i.e. scale factor) and forget physical dimensions and pixels.
The question is settled. In fact, the XCode 10.0 simulator when you start the application from the Resources folder takes the most appropriate image and by its size builds the screen size of the simulator, and since the projects created earlier, there are no images for the new phone sizes, it takes the largest (that is, for the Iphone X). It is required to correct this.
Hey Everyone,
I was curious how the size comparison is between the iPhone XR and the base iPhone 16? On paper they look pretty close, but just wanted some first hand feedback on anyone who has upgraded.
Also, how does the weight compare of both devices?
Any help would be greatly appreciated. Thanks in advance to everyone for your time and help!