I want to change the height of an tab bar. I changed it this way, but no change occurred.
Here's my UITabBarController
:
import UIKit
import SideMenu
class TabBarController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
setupSideMenu()
self.navigationController?.navigationBar.isHidden = true
self.tabBar.frame = CGRect(
origin: CGPoint(x: 0, y: 20),
size: CGSize(width: 400, height: 200)
)
}