Swift generics in protocols – Ios swift
What is an appropriate way to solve the following example with swift? I know because of type erasure that you cannot assign StructB to item2 in the constructor. In other languages like Java I would solve the problem by not…