In Swift, why protocol initializers must be defined as required in conforming types?
You may have asked yourself “why either the conforming types must define initializers of protocols as ‘required’ or they must be final”.
You may have asked yourself “why either the conforming types must define initializers of protocols as ‘required’ or they must be final”.
In Swift, generic protocols can only be used as a generic constraint. But why is that? Why we can’t use them as normal protocols?