我试图将我的Enum案例作为SwiftUI中的列表选择。我使用的是Xcode 13.2.1enum MyEnum : String, CaseIterable, Identifiable var id : RawValueGeneric parameter error here Text(name.rawVa
下面的代码给出了“泛型参数‘值’无法推断”的错误。import SwiftUI
This case study demonstrates how to enhance an existingSwiftUI component so that it can be driven \
off of optional and enum state.