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