The Battle Between TextFields and the Keyboard

Photo by Carlos Baker on Unsplash

When not using a UITableViewController you may have noticed an issue where your text field, if located lower on the screen gets hidden when the keyboard appears on screen.

Thankfully, there is a quick fix for this when used in conjunction with a scroll view. If you haven’t quite mastered scroll views yet, check out my article on how to add a scroll view.