Skip to content

I think protocol should inherit from AnyObject. #278

@keisukeYamagishi

Description

@keisukeYamagishi

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

  1. Build with Xcode

Specifications

  • Xcode version: 12.5
  • iOS version: 14.0
  • Dependency manager + version: n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions