Static member cannot be used on protocol metatype

Protocol extensions add members to concrete types which conform to the protocol. There is currently no way to add members to the protocol type itself.

A recent thread of Swift Evolution proposed to add this functionality, but it is still in the pre-pitch phase.

4 Likes