Post

Replies

Boosts

Views

Activity

Comment on How can I get the safeAreaInsets in iOS 15?
How can I get the total height of statusBar + navBar + any space between these? I know that navBar height should be 44, while the sareAreaInsets.top is different from one phone to another. I get 59 for iPhone 15 and 20 for iPhone SE 3rd generation. If I get the frame.minY of a view content, the default position is 97,(6) on iPhone 15 and 64 on iPhone SE 3rd gen. This 64 value makes sense, it = safeAreaInsets.top + 44 of the navigationBar height, but I don't know where that 97,(6) comes from.
May ’24