2

I am trying to get the height of a tabBar in swiftUI however I am failing I know in swift we would do something like :

extension UITabBarController{

    func getHeight()->CGFloat{
        return self.tabBar.frame.size.height
    }

    func getWidth()->CGFloat{
         return self.tabBar.frame.size.width
    }
}

What is the equivalent in SwiftUI?

kaddie
  • 233
  • 1
  • 5
  • 27

0 Answers0