4

Is there any custom TabBarController or some other way to get the UITabbar on landscape mode as vertical (not horizontal).

When the app starts, the TabBars will be at bottom (horizontal) but when user will rotate screen, the tabBarController will switch to vertical mode on left side.

I have been thinking of using native UITabBar and on rotation of device, to use CoreAnimation to rotate it but I am not sure if this approach is good or not.

pnuts
  • 58,317
  • 11
  • 87
  • 139
Anand
  • 864
  • 10
  • 31

2 Answers2

1

@Joy

FSVerticalTabBarController - https://github.com/futuresimple/FSVerticalTabBarController is a very good custom vertical tab bar controller.

Easwaramoorthy Kanagaraj
  • 3,925
  • 8
  • 36
  • 62
1

I translated futuresimple/FSVerticalTabBarController into Swift 5.

My repo is https://github.com/coyingcat/VerticalTabBar


Apple's doc Implementing a Container View Controller is great also

Adding a Child View Controller to Your Content is not hard, so is Removing a Child View Controller

black_pearl
  • 2,549
  • 1
  • 23
  • 36