diff --git a/Sources/Classes/SwipeMenuView.swift b/Sources/Classes/SwipeMenuView.swift index bfa4b19..e642e64 100644 --- a/Sources/Classes/SwipeMenuView.swift +++ b/Sources/Classes/SwipeMenuView.swift @@ -147,7 +147,7 @@ public struct SwipeMenuViewOptions { // MARK: - SwipeMenuViewDelegate -public protocol SwipeMenuViewDelegate: class { +public protocol SwipeMenuViewDelegate: AnyObject { /// Called before setup self. func swipeMenuView(_ swipeMenuView: SwipeMenuView, viewWillSetupAt currentIndex: Int) @@ -171,7 +171,7 @@ extension SwipeMenuViewDelegate { // MARK: - SwipeMenuViewDataSource -public protocol SwipeMenuViewDataSource: class { +public protocol SwipeMenuViewDataSource: AnyObject { /// Return the number of pages in `SwipeMenuView`. func numberOfPages(in swipeMenuView: SwipeMenuView) -> Int diff --git a/Sources/Classes/TabView.swift b/Sources/Classes/TabView.swift index 8b20a6e..ebe4718 100644 --- a/Sources/Classes/TabView.swift +++ b/Sources/Classes/TabView.swift @@ -2,7 +2,7 @@ import UIKit // MARK: - TabViewDelegate -public protocol TabViewDelegate: class { +public protocol TabViewDelegate: AnyObject { /// Called before selecting the tab. func tabView(_ tabView: TabView, willSelectTabAt index: Int) @@ -19,7 +19,7 @@ extension TabViewDelegate { // MARK: - TabViewDataSource -public protocol TabViewDataSource: class { +public protocol TabViewDataSource: AnyObject { /// Return the number of Items in `TabView`. func numberOfItems(in tabView: TabView) -> Int