0

I am trying to set the positioning of my items in my tabBar, I want to lower the items towards the item title. Can I use UITabBar.ItemPositioning and if so how? Thank you.

How it looks now:

enter image description here

class CustomTabBarController: UITabBarController {

    @IBOutlet weak var myTabBar: UITabBar!

    override func viewDidLoad() {
        super.viewDidLoad()

    }

    override func viewWillLayoutSubviews() {

       myTabBar.frame = CGRect(x: 0, y: 0, width: view.bounds.size.width, height: 100)

    }
}
Amit
  • 4,837
  • 5
  • 31
  • 46
olle
  • 134
  • 3
  • 15

1 Answers1

1

Try this one, It should be helpful to you

enter image description here

midhun p
  • 1,987
  • 18
  • 24