statusBarFrame error

Using an iPhone 16 Pro Max, running [UIApplication sharedApplication].windows.lastObject.windowScene.statusBarManager.statusBarFrame.size.height in Xcode 15 returns a result of 44, causing UI display issues for applications that rely on the status bar height for calculations.

However, using Xcode 16, the same code returns a height of 54, and the UI displays correctly.

Is this an Apple

Please acknowledge this bug, Apple.

statusBarFrame error
 
 
Q