一些背景类型删除容器是Swift中的有用结构,因为它目前无法支持传递泛型类型参数。社区对此有一些很好的解释:http://www.russbishop.net/type-erasurehttps://realm.io/news/tryswift-gwendolyn-weston-type-erasure/https://www.bignerdranch.com/blog/breaking-down-type-erasures-in-swift/这是一个例子:protocolView:class{associatedtypeViewModel:EquatablevarviewModel: