Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Deprecated class-constrained Protocol with AnyObject #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/Classes/SwipeMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Sources/Classes/TabView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down