我目前正在使用GMSPath获取路径,但是在添加到模型类时,我会得到错误Type 'EstimateResponse' does not conform to protocol 'Decodable'和Type 'EstimateResponse' does not conform to protocol 'Encodable'。
我有一组视图,我需要从这些视图中获取值,以便将它们保存到我的上下文中。当尝试在单击按钮时遍历这些类型时,我得到一个“类型'()‘不能符合'View';只有struct/enum/class类型可以符合协议”异常。我是swift的新手,我想知道是否有更简单的方法来做到这一点。非常感谢您的支持!struct DetailedView: View { @Environment(\.managedObjectContext) var moc var targetMuscle : String = "Chest