SwiftUI 类在初始化阶段报错:
Cannot find type 'fixedDepositType' in scope
Unnamed parameters must be written with the empty name '_'
通常是因为报错的字段缺失类型导致。
var fixedDepositType
因为没写类型,编译器会把fixedDepositType当成类型名,然后发生报错:
Cannot find type 'fixedDepositType' in scope
解决方案:添加类型。
var fixedDepositType: String
