Search code examples
iosswiftuitabbar

Hiding the tabbar and removing the space


Is there a way to hide tabbar and remove that space left (around 50px) ?

I tried

self.tabBarController?.tabBar.hidden = true
self.extendedLayoutIncludesOpaqueBars = true

No luck. I see blank space.


Solution

  • If you're still seeing a black stripe under your hidden tab bar, have you tried to select Extend Edges Under Opaque Bars here?

    enter image description here

    Make also sure that Under Bottom Bars is still selected. Hope it helps!