Thank you, interesting thought but I can't achieve what you suggest.
When I lock the orientation of the phone, it forces it in portrait mode inside apps that support both orientations, which is logical. The home screen for example only exists in portrait so locking it in landscape would not work. FF6 only works in landscape and screen locking does not affect it.
I tried all permutations (initial locking orientation, opened app when locking or quitting FF6 before any test...) to no avail.
Seems to me like the iPhone 11 is not recognised yet and that the software correctly centers the image but uses a "default" dimension for the display instead of using the full viewport... My guess is their default is the screen resolution of an iPhone4 (the first retina). Why people code like this is beyond me...
let screenBounds = UIScreen.main.bounds
let screen_width = screenBounds.width
let screen_height = screenBounds.height
let screenScale = UIScreen.main.scale
Is not that complicated
When I lock the orientation of the phone, it forces it in portrait mode inside apps that support both orientations, which is logical. The home screen for example only exists in portrait so locking it in landscape would not work. FF6 only works in landscape and screen locking does not affect it.
I tried all permutations (initial locking orientation, opened app when locking or quitting FF6 before any test...) to no avail.
Seems to me like the iPhone 11 is not recognised yet and that the software correctly centers the image but uses a "default" dimension for the display instead of using the full viewport... My guess is their default is the screen resolution of an iPhone4 (the first retina). Why people code like this is beyond me...
let screenBounds = UIScreen.main.bounds
let screen_width = screenBounds.width
let screen_height = screenBounds.height
let screenScale = UIScreen.main.scale
Is not that complicated