The top padding of UINavigationBar
's value is
UIApplication.shared.statusBarFrame.height
or
UIApplication.shared.keyWindow?.safeAreaInsets.top
?
Here is image See the blue box of the image
https://github.com/luckysmg/daily_images/blob/main/20220928153515.jpg?raw=true
Because two value is the same on devices older than iPhone14 Pro but is not the same on iPhone14 Pro and iPhone 14 Pro max. Which is the right value to get?