1

To my understanding, the only way to subclass UITabBar (to increase the height) in a UITabBarController is to implement a storyboard and assign the subclass directly via the interface builder.

I was wondering if it would be possible to simply swizzle self.tabBar to our own subclassed tab bar, but that probably wouldn’t work.

Any other ideas? I’m simply trying to increase the height of the tab bar, while not breaking or conflicting with the superview’s constraints.

COOKIES
  • 434
  • 4
  • 14

1 Answers1

0

I think you should go through all the answers given in the following link.

Change UITabBar height

In this example people have given ways to customize height without even subclassing.

Harsh
  • 2,852
  • 1
  • 13
  • 27
  • Already saw that thread. I’m wondering if swizzling will help with drawing the initial UITabBar, or any other solutions that aren’t setting the view controller height. – COOKIES Mar 16 '18 at 22:55
  • First of all you are not setting the height of the view controller, whereas you are setting the height of the tab bar. Other than that, swizzling is not a very good pattern to use.. This is used as a last resort of all the available solution. – Harsh Mar 16 '18 at 22:58