Ios swift – Passing protocol conforming type via generics not working in Swift
I have a requirement where I have multiple struct conforming to protocol P, which I later make a collection of and execute methods like compute() via a Computer struct which helps in creating an instance of each conforming type Why…