title: How use use SwiftUI ForEach with a dictionary [ customEnum : customStrut ] - getting "conform to 'RandomAccessCollection'" error
body: <p>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 ].  </p>
  
  <p>Otherwise if this is problematic a different way to achieve that SwiftUI supports? </p>
  
  <p>Errors</p>
  
  <blockquote>
    <p>Referencing initializer 'init(_:id:content:)' on 'ForEach' requires
    that '[GCFilterViewOptions.FilterOptions :
    GCFilterViewOptions.FilterOptionValues]' conform to
    'RandomAccessCollection'</p>
    
    <p>Type '(key: GCFilterViewOptions.FilterOptions, value:
    GCFilterViewOptions.FilterOptionValues)' cannot conform to 'Hashable';
    only struct/enum/class types can conform to protocols</p>
  </blockquote>
  
  <p>Code</p>
  
  <pre><code>import SwiftUI
  
  struct GCFilterViewOptions: View {
      enum FilterOptions {
          case NewLine
          case Comma
          case Space
      }
      struct FilterOptionValues {
          var title : String
          var selected : Bool
      }
      var filterSelections : [FilterOptions : FilterOptionValues] = [
          FilterOptions.NewLine : FilterOptionValues(title: "New Line", selected: true),
          FilterOptions.Comma : FilterOptionValues(title: "Comma", selected: true),
          FilterOptions.Space : FilterOptionValues(title: "Space", selected: false)
      ]
  
      var body : some View {
          HStack {
              ForEach(filterSelections, id:\.self) { filterOption in.  // ** ERRORS HERE **
                  Text("TBD")
                  // Will be putting checkboxes here - i.e. so can chose which ones 
              }
          }
      }
  }
  </code></pre>