title: How to use textfield to enter numbers into a array (swift3)
body: <p>I have  a textfield that I would like the user to be able to enter numbers for a array in. Ideally the button would save the number, then clear the textfield for another number to be enter. This would be a process that would just go in a loop. So its just save the number, clear the number, repeat infinitely. </p>
  
  <pre><code>    import UIKit
  
  class ViewController: UIViewController {
  @IBOutlet var enterText: UITextField!
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view, typically from a nib.
  }
  
  @IBAction func submitText(_ sender: Any) {
  }}
  </code></pre>