<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Great!</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Zhaoxin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 2:15 PM, Bruno Macabeus via swift-users <span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I found the solution. I need use a closure.<div>I updated the gist: <a href="https://gist.github.com/brunomacabeusbr/eea343bb9119b96eed3393e41dcda0c9" target="_blank">https://gist.github.com/<wbr>brunomacabeusbr/<wbr>eea343bb9119b96eed3393e41dcda0<wbr>c9</a></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-03-13 1:38 GMT-03:00 Bruno Macabeus <span dir="ltr">&lt;<a href="mailto:bruno.macabeus@gmail.com" target="_blank">bruno.macabeus@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I wrote a gist to list all classes that subscribers a protocol: <a href="https://gist.github.com/brunomacabeusbr/eea343bb9119b96eed3393e41dcda0c9" target="_blank">https://gist.github.<wbr>com/brunomacabeusbr/eea343bb91<wbr>19b96eed3393e41dcda0c9</a></div><div>It work, but, I could not pass a protocol as parameter, then, I need wrote one function each time I <span id="m_2004297147975070921m_-369412780466805480m_-6097948805544639014m_-7999954819635705759goog_641569212"></span>need <span id="m_2004297147975070921m_-369412780466805480m_-6097948805544639014m_-7999954819635705759goog_641569213"></span>to list class from different protocol.</div><div><a href="http://stackoverflow.com/a/27162499/3440266" target="_blank">I know how to pass a protocol using @obcj</a>, but I can&#39;t use @obcj, because my protocols have property.</div></div>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br></div>