Swift update: class -> AnyObject

This commit is contained in:
James Magahern
2021-01-07 12:46:57 -08:00
parent 68ebc28996
commit d3a690430d

View File

@@ -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)
}