Vertical TabbarController (or TabBar)?
Is there any custom TabBarController
or any other way to get UITabbar
in landscape mode as vertical (not horizontal).
When the app launches, it TabBars
will be at the bottom (horizontally), but when the user rotates the screen, it will TabBarController
switch to vertical mode on the left side.
I thought to use native UITabbar
and when rotating the device to use CoreAnimation
to rotate it, but I'm not sure if this approach is good or not.
source to share
@Joy
FSVerticalTabBarController - https://github.com/futuresimple/FSVerticalTabBarController is a very nice custom vertical tab bar controller.
source to share
I have translated futuresimple / FSVerticalTabBarController to Swift 5.
My repo is https://github.com/coyingcat/VerticalTabBar
Apple Document Implementing a Container View Controller is also good
Adding a Child View Controller to your content is not difficult, as is removing a Child View Controller.
source to share