swift声明属性为某个类型同时遵循某协议 var instanse:(协议A & 类B) 转载于:https://www.cnblogs.com/duzhaoquan/p/11338661.html