Swift Generics and Protocol Extensions
问题 I have a protocol Reusable that has a static function static func reuseId() -> String and a protocol extension that defines the default implementation for the function. Then, I implemented a extension on UITableViewCell to conform to the Reusable protocol. I can now use the function on my TableViewCells without a problem: SomeTableViewCell.reuseId() . The Problem I have is with Generics. I have a generic class that has a generic parameter of the type UITableViewCell : internal class SomeClass