Skip to content

Instantly share code, notes, and snippets.

@zackperdue
Created February 12, 2020 06:57
Show Gist options
  • Save zackperdue/07352e7f7a157bdabe6de6c09f87e47a to your computer and use it in GitHub Desktop.
Save zackperdue/07352e7f7a157bdabe6de6c09f87e47a to your computer and use it in GitHub Desktop.
[FIX] UITextField Text Jumping Sideways
override func resignFirstResponder() -> Bool {
let resigned = super.resignFirstResponder()
self.layoutIfNeeded()
return resigned
}
@zackperdue
Copy link
Author

All you have to do is subclass UITextField

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment