Commit 3ae5c61a by Orkhan Alikhanov

Removed unused TabBarDelegate conformance

parent 41139013
...@@ -257,7 +257,6 @@ fileprivate extension TabsController { ...@@ -257,7 +257,6 @@ fileprivate extension TabsController {
func prepareTabBar() { func prepareTabBar() {
tabBar.lineAlignment = .bottom == tabBarAlignment ? .top : .bottom tabBar.lineAlignment = .bottom == tabBarAlignment ? .top : .bottom
tabBar._delegate = self tabBar._delegate = self
tabBar.delegate = self
view.addSubview(tabBar) view.addSubview(tabBar)
} }
...@@ -429,7 +428,7 @@ extension TabsController { ...@@ -429,7 +428,7 @@ extension TabsController {
} }
} }
extension TabsController: TabBarDelegate, _TabBarDelegate { extension TabsController: _TabBarDelegate {
@objc @objc
func _tabBar(tabBar: TabBar, willSelect tabItem: TabItem) { func _tabBar(tabBar: TabBar, willSelect tabItem: TabItem) {
guard !(false == tabBar.delegate?.tabBar?(tabBar: tabBar, shouldSelect: tabItem)) else { guard !(false == tabBar.delegate?.tabBar?(tabBar: tabBar, shouldSelect: tabItem)) else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment