Starscream icon indicating copy to clipboard operation
Starscream copied to clipboard

Replace class with AnyObject in all protocol definitions

Open tbarbugli opened this issue 3 years ago • 2 comments

What do you want to happen?

Replace class with AnyObject in all protocol definitions (class is deprecated). Happy to do it myself unless there is a reason not to make this change.

public protocol EngineDelegate: class {

into

public protocol EngineDelegate: AnyObject {

tbarbugli avatar Aug 12 '21 08:08 tbarbugli

👍

This produces a deprecation warning on Xcode 13.

Using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead

odrobnik avatar Aug 30 '21 12:08 odrobnik

It looks like this was already fixed in #894 but there hasn't been a tagged release in a very long time.

kohenkatz avatar Feb 27 '22 20:02 kohenkatz