title: How to get row index in SwiftUI List?
body: <p>I would like to have a numbered list, where every row has a number.</p>
  
  <p>Something like this</p>
  
  <p><img src="https://i.stack.imgur.com/tc34o.png" width="200" height="400"></p>
  
  <p>but I don't see right API for that in <code>List</code> initialisers </p>
  
  <p>At this moment I see this workaround</p>
  
  <pre><code>var persons = ["Boris", "Anna", "Tom"]
  
  // MARK: - Body
  func body(props: Props) -&gt; some View {
      List(persons.indices, id: \.self) { index in
          Text("\(index) \(self.persons[index])")
      }
  }
  </code></pre>