Lee Kah Seng
Jul 28, 2017 · 1 min read

Hi Matthew,

Thanks for your great article, it’s give me a clearer picture how we should handle polymorphism and dynamic dispatch when using protocol with associated type. However I can’t really figure out the last part on how we can use ‘enum ShowBoxNum’ to solve the “cannot invoke showSB with an argument of type any” error. Would appreciate if you can provide more elaboration on that. Thanks!

    Lee Kah Seng

    Written by

    https://swiftsenpai.com | iOS developer since 2011 | Swift Lover | Music Addict | Anime Fan | Part-time Backpacker