How use use SwiftUI ForEach with a dictionary [ customEnum : customStrut ] - getting “conform to 'RandomAccessCollection'” error
问题 How could I correct this code from failing build? Basically wanting to use ForEach to iterate through a dictionary which is based on a [ customEnum : customStrut ]. Otherwise if this is problematic a different way to achieve that SwiftUI supports? Errors Referencing initializer 'init(_:id:content:)' on 'ForEach' requires that '[GCFilterViewOptions.FilterOptions : GCFilterViewOptions.FilterOptionValues]' conform to 'RandomAccessCollection' Type '(key: GCFilterViewOptions.FilterOptions, value: