From d3a690430d29e67759745e4ebede46c0c883aa8a Mon Sep 17 00:00:00 2001 From: James Magahern Date: Thu, 7 Jan 2021 12:46:57 -0800 Subject: [PATCH] Swift update: class -> AnyObject --- App/Tabs/TabBarView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }