UIScreen.main.bounds.width and UIScreen.main.bounds.height are both wrong. It's returning 414x736 but it should be about 360x640. Device: iPhone 8 Plus.
UIScreen.main.bounds returning incorrect size
Add a Comment
UIScreen.main.bounds.width and UIScreen.main.bounds.height are both wrong. It's returning 414x736 but it should be about 360x640. Device: iPhone 8 Plus.
Working in Xcode, the iPhone 8+ has a screen size (in points) of 414 x 736.
This is scaled by the system, to display at (pixels) 1080 × 1920.
Reference: https://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions
iPhone 6 / 6s / 7 / 8 Plus:
===
iPhone Plus has a physical screen 1080x1920, so:
Check “Setting > Display&Brightness > Display zoom > Larger Text” mode is selected. It can be different if that mode is on.