alpha-wallet-ios icon indicating copy to clipboard operation
alpha-wallet-ios copied to clipboard

Change all protocols which extends class to extend AnyObject instead

Open eviltofu opened this issue 3 years ago • 1 comments

https://docs.swift.org/swift-book/LanguageGuide/Protocols.html#ID281 states

Class-Only Protocols
You can limit protocol adoption to class types (and not structures or enumerations) by adding the AnyObject protocol to a protocol’s inheritance list.

eviltofu avatar Jun 09 '22 02:06 eviltofu

I think Xcode build or SwiftLint checks for this.

hboon avatar Jun 09 '22 02:06 hboon