我想使用didset属性来管理自定义的可编码数组,设置不同的dataTypes。这里ReportSortModal是
struct ReportSortModal<T:Decodable> { var title : String? var data : T? }
鉴于 Fieldreport &.是两种不同的可编码结构。DustbinInspection 是两种不同的可编码结构。
Fieldreport
DustbinInspection
错误的&代码如下。