Expected Behavior
I think protocol should inherit from AnyObject.
As described in the following article, the specification is such that if you do not inherit AnyObject in protocol, you will get a warning.
Swift forums 'Class-only protocols, class vs AnyObject?'
Actual Behavior
Since the class is inherited by protocol, we get a warning.
Steps to Reproduce the Problem
- Build with Xcode
Specifications
- Xcode version: 12.5
- iOS version: 14.0
- Dependency manager + version: n/a