title: Snapshotting a view (_UIReplicantView) that has not been rendered at least once requires afterScreenUpdates:YES
body: <p>I'm a new programmer that's still learning, so forgive me if my code looks like crap. I'm writing a program that has a ViewController called "infoViewController" with multiple UITextFields on it. The user is supposed to fill out the textfields and then click the "Next" button in the upper-right of the screen, which then activates a "Show" segue and takes them to the next VC. All the info from the Text Fields are stored in constants for later down the road when I take that information that they inputted and place it on a .PDF file that is generated at the end. I wanted the user to be able to easily go through the text fields, so I made it where when the user is on the TextField and clicks "Next" on their keyboard, it moves them to the next TextField so that they can fill them all out quickly and easily. The issue I run into is that for some reason I keep getting this error when I click "Next" on the keyboard:</p>
  
  <p><em>[Snapshotting] Snapshotting a view (0x7f89955786c0, _UIReplicantView) that has not been rendered at least once requires afterScreenUpdates:YES.</em></p>
  
  <p>The app still works... but I'd rather not have an error showing up in the panel (in Xcode) at all lol. Also, when it does this, it's like the screen glitches and flickers white for a split second (super fast) before it moves on to the next TextField... any solutions?</p>
  
  <p>Please dumb anything you reply down to a beginners level. Thanks!</p>
  
  <p>Here's the code I wrote for switching between TextFields:</p>
  
  <p>extension infoViewController {</p>
  
  <pre><code>func textFieldShouldReturn(_ textField: UITextField) -&gt; Bool {
      let nextTag = textField.tag + 1
  
      if let nextResponder = textField.superview?.viewWithTag(nextTag) {
          nextResponder.becomeFirstResponder()
      } else {
          textField.resignFirstResponder()
      }
  
      return true
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I assigned the TextField delegates in "viewDidLoad."
  (Ex: clientTextField.delegate = self)</p>
  
  <p>I also assigned the tags in "viewDidLoad."
  (Ex: clientTextField.tag = 0)</p>