title: How to create TextField that only accepts numbers
body: <p>I'm new to SwiftUI and iOS, and I'm trying to create an input field that will only accept numbers.</p>
  
  <pre><code> TextField("Total number of people", text: $numOfPeople)
  </code></pre>
  
  <p>The <code>TextField</code> currently allows alphabetic characters, how do I make it so that the user can only input numbers?</p>