You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So there the height is 50.0. If compare with the youtube implementation, they keep very short height as of 25 for regular devices and much more larger for iPhoneX+ devices.
As per discussion with @ab1d-rahman he enlighten me about
is the value what we are looking for. It denotes the bottom height what we should ignore. While playing with it i found that it is available from iOS 11.0+.
So there is few questions
Should we handle the extra height needed to pad for iPhonex+ devices ?
If we should handle the padding, how are we going to get the padding value in iOS 10.x.x.
The text was updated successfully, but these errors were encountered:
I think it's better we let the user deal with height calculation. That will provide the user with more freedom. Adding safe area related calculations might create confusion/complexity for the user.
I think it's better we let the user deal with height calculation. That will provide the user with more freedom. Adding safe area related calculations might create confusion/complexity for the user.
Then pod user have to calculate the extra padding needed to iPhoneX+ devices. So user have to add UIApplication.shared.keyWindow?.safeAreaInsets.bottom to original height. But the problem is UIApplication.shared.keyWindow?.safeAreaInsets.bottom is available only iOS 11.0+ . For iOS 10.0 how can we calculate this value ?
For any device which has iOS 10 or older, you can be sure they do not need to calculate the extra padding height. Only devices that have safe area related calculations are all iPhonesX+ and you will never find any of these devices running on iOS 10 or older.
Currently the implementation height is given following
So there the height is
50.0
. If compare with the youtube implementation, they keep very short height as of25
for regular devices and much more larger for iPhoneX+ devices.As per discussion with @ab1d-rahman he enlighten me about
is the value what we are looking for. It denotes the bottom height what we should ignore. While playing with it i found that it is available from iOS 11.0+.
So there is few questions
The text was updated successfully, but these errors were encountered: