title: How to use ForEach on a NSSet generated by CoreData in SwiftUI
body: <p>I generated a CoreData model with some 1-to-many relationships. Now I want to use a ForEach on this relationship which is a <code>NSSet</code>, then I'm getting the following error:</p>
  
  <pre><code>Generic struct 'ForEach' requires that 'NSSet' conform to 'RandomAccessCollection'
  </code></pre>
  
  <p>My code looks like this:</p>
  
  <pre><code>struct DetailView: View {
      var sample: Sample
  
      var body: some View {
          VStack {
              ForEach(sample.stepps!, id: \.self) { step in
                  ...
              }
          }
      }
  }
  </code></pre>
  
  <p>How to solve this?</p>