1

I am facing the issue that my tabbar is stretched on the new iPhone X. I am using a regular UITabBarController with no further styling for height etc. I want it to be like the iPhone 8 picture so placed against the bottom of the view and not stretched like it is at this moment.

Is this easy?

iPhone X

UITabBarController iPhone X

iPhone 8

UITabBarController iPhone 8

David Raijmakers
  • 1,369
  • 1
  • 16
  • 40
  • It should look the same automatically. The only reason there should be a space is for the bottom line to indicate that users can swipe up to go to the home screen. Can you give more context on what you view looks like and how your tab bar controller is setup. – Nevin Jethmalani Sep 25 '17 at 14:34
  • try with safe layout guide and see. I must work – Krunal Sep 25 '17 at 14:55
  • I don't think this is a duplicate. I had the same problem with a tabBarController created in a window - all programmatically, that is no XIB. I solved it by setting the window.frame to a height equal to the UIScreen height plus the window.safeAreaInserts.bottom. – Peter B. Kramer Dec 05 '17 at 23:30

2 Answers2

1

its because of the lack of home button on the X its done like that to give the User some room for the upward swipe gesture to get to the home page (if you were able to lower it more you'd be screwing over your iPhone X users)

E. Huckabee
  • 1,788
  • 1
  • 13
  • 29
0

It's normal. 34 pixels from bottom are reserved for gesture. If you want do like on iPhone 8, that users who use your app will have inconvenience.