From 464a4fb6ea2a769362b82249bb6fe3f5f7e160ad Mon Sep 17 00:00:00 2001 From: Kai Eckardt Date: Fri, 22 Oct 2021 09:29:59 +0200 Subject: [PATCH] resolves issue: 'class' keyword to define a class-constrained protocol is deprecated --- Sources/Spry/Spyable.swift | 2 +- Sources/Spry/Stubbable.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Spry/Spyable.swift b/Sources/Spry/Spyable.swift index 47b3db5..534b90a 100644 --- a/Sources/Spry/Spyable.swift +++ b/Sources/Spry/Spyable.swift @@ -22,7 +22,7 @@ private var callsMapTable: NSMapTable = NSMa - Note: The `Spryable` protocol exists as a convenience to conform to both `Spyable` and `Stubbable` at the same time. */ -public protocol Spyable: class { +public protocol Spyable: AnyObject { // MARK: Instance diff --git a/Sources/Spry/Stubbable.swift b/Sources/Spry/Stubbable.swift index 1f057d4..a7fb6f5 100644 --- a/Sources/Spry/Stubbable.swift +++ b/Sources/Spry/Stubbable.swift @@ -22,7 +22,7 @@ private var stubsMapTable: NSMapTable = NSMapTable.w - Note: The `Spryable` protocol exists as a convenience to conform to both `Spyable` and `Stubbable` at the same time. */ -public protocol Stubbable: class { +public protocol Stubbable: AnyObject { // MARK: - Instance