Hello and thank you in advance for your help,
I noticed that on iPhone 14 Pro and 14 Pro Max, the size of the status bar obtained by:
UIApplication.shared.statusBarFrame.height
or let height = view.window?.windowScene?.statusBarManager?.statusBarFrame.height ?? 0
Is not the right one.
Indeed, it returns a height of 44.0 when a run my application from TestFlight (on debug mode no problem at all, this drives me nuts) while on these devices it should be 54.0 I do not understand why. Other people encounter this problem?
Thank you !
See also this thread about similar weird behavior for iPhone 14 Pro models with TestFlight.