3 ms·
> In Swift, protocol definitions can contain implementations of methods Technically, no, they can't. What you do is write your protocol as usual, then extend t
by saagarjha 8y ago
> In Swift, protocol definitions can contain implementations of methods
Technically, no, they can't. What you do is write your protocol as usual, then extend the protocol with a default implementation.