<div dir="ltr">On Sat, Aug 19, 2017 at 3:26 PM, Goffredo Marocchi <span dir="ltr">&lt;<a href="mailto:panajev@gmail.com" target="_blank">panajev@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><span></span></div><div>Sorry, I thought that the default implementation in the protocol extension was how this was provided.<div><br></div><div><blockquote type="cite"><span style="background-color:rgba(255,255,255,0)">Providing Default Implementations</span></blockquote><blockquote type="cite"><p class="m_-1286975748820107774para" style="border:0px;margin:0px 0px 15px;outline:0px;padding:0px;vertical-align:baseline;line-height:22.735998153686523px"><span style="background-color:rgba(255,255,255,0)">You can use protocol extensions to provide a default implementation to any method or computed property requirement of that protocol</span></p></blockquote></div><div><a href="https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Protocols.html#//apple_ref/doc/uid/TP40014097-CH25-ID521" target="_blank">https://developer.apple.com/<wbr>library/content/documentation/<wbr>Swift/Conceptual/Swift_<wbr>Programming_Language/<wbr>Protocols.html#//apple_ref/<wbr>doc/uid/TP40014097-CH25-ID521</a><br><div id="m_-1286975748820107774AppleMailSignature"></div></div></div></div></blockquote><div><br></div><div><br></div><div>There are default implementations and extension methods. Both are written inside protocol extensions. Default implementations are dynamically dispatched, but extension methods are not. A default implementation implements a protocol requirement. An extension method adds a method to a protocol which is not a requirement.</div></div><br></div></div>