-1

I would like to know how to create the below menu when I click on a tabBarItem:

enter image description here

If I understood correctly I have to add function with frame on this function:

override func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) {
    if item.title == "Add" {
        print("add")
    }
}
Timmy
  • 4,098
  • 2
  • 14
  • 34
  • What have you tried so far? Please try to add a [mre] and highlight exactly where you struggle. – burnsi Feb 13 '23 at 09:50

1 Answers1

0

First you need to create the Second menu. Whether that’s programmatically or nib. It needs to be a UIViewController (assuming you’re using UIKit). Then on the did select trigger you can present the SecondMenu overFullScreen as a modal. I suggested a UIViewController as you can use apples existing navigation APIs todo the heavy lifting.

To get the illusion, make the SecondMenuController background clear and position the MenuContainerView as shown in your picture at the bottom.

OneCommentMan
  • 147
  • 1
  • 6