My custom tab Bar:
class MyTabBar: UITabBar {
}
My custom tab Bar Controller:
class MyTabBarController: UITabBarController {
}
My question is how I can use my custom tab bar in my custom tab bar controller?
My custom tab Bar:
class MyTabBar: UITabBar {
}
My custom tab Bar Controller:
class MyTabBarController: UITabBarController {
}
My question is how I can use my custom tab bar in my custom tab bar controller?
I managed to that by setting the value of 'tabBar' to my custom tabBar.
setValue(MycustomTabBar(frame: tabBar.frame), forKey: "tabBar")
class MyCustomTabBarController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
setValue(TBar(frame: tabBar.frame), forKey: "tabBar")
view.backgroundColor = .white
createShape()
}
}