diff --git a/App/Tabs/TabBarView.swift b/App/Tabs/TabBarView.swift index 9581038..6ebc987 100644 --- a/App/Tabs/TabBarView.swift +++ b/App/Tabs/TabBarView.swift @@ -99,13 +99,13 @@ class TabView: UIControl } } -protocol TabBarViewDataSource: class { +protocol TabBarViewDataSource: AnyObject { func numberOfTabs(forTabBarView: TabBarView) -> Int func tabBarView(_ tabBarView: TabBarView, titleForTabAtIndex: Int) -> String func tabBarView(_ tabBarView: TabBarView, imageForTabAtIndex: Int) -> UIImage? } -protocol TabBarViewDelegate: class { +protocol TabBarViewDelegate: AnyObject { func tabBarView(_ tabBarView: TabBarView, didClickToActivateTabAtIndex: Int) func tabBarView(_ tabBarView: TabBarView, didClickToCloseTabAtIndex: Int) }