I need to change the UITabBar
height to 95. I can do that in the older version of iOS Swift. This is my code that work in the older version.
override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
tabBar.frame.size.height = 95
tabBar.frame.origin.y = view.frame.height - 95
menuButton.frame.origin.y = self.view.bounds.height - tabBar.frame.size.height - 10
shadowBtn.frame.origin.y = self.view.bounds.height - tabBar.frame.size.height - 15
}
Try it in viewDidLayoutSubviews
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
tabBar.frame.size.height = 95
tabBar.frame.origin.y = view.frame.height - 95
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With