title: What does "\.self" actually do in swift/swiftUI?
body: <p>I don't fully understand what exactly <code>\.self</code> does in the following code:</p>
  <pre><code>struct ContentView: View {
      @State private var numbers = [Int]()
      @State private var currentNumber = 1
  
      var body: some View {
          VStack {
              List {
                  ForEach(numbers, id: \.self) {
                      Text(&quot;\($0)&quot;)
                  }
              }
  
              Button(&quot;Add Number&quot;) {
                  self.numbers.append(self.currentNumber)
                  self.currentNumber += 1
              }
          }
      }
  }
  </code></pre>
  <p>I'm following this: <a href="https://www.hackingwithswift.com/books/ios-swiftui/deleting-items-using-ondelete" rel="noreferrer">https://www.hackingwithswift.com/books/ios-swiftui/deleting-items-using-ondelete</a>.</p>
  <p>I have a really basic understanding of the language right now, so I may not understand high level explanations, so would prefer very simple explanations or analogies with verbose descriptions. I think it is setting the <code>id</code>for each <code>list</code> item as each item in the numbers array? Correct me if wrong - but is each <code>id</code> being set as whatever <code>Int</code> is in each entry of the numbers array? If so, then what does <code>\</code> actually do when typing <code>\.self</code> and what does <code>.self</code> actually do in combination with <code>\</code>?</p>