Requiring an input to be numbers only is quite a common task. In this tutorial I
will show you how to allow numbers only in a TextField using SwiftUI.
Step 1: Change the keyboard type to .decimalPad
The first step in this task is to change the keyboard type to