Best way to dismiss Keyboard in a View Controller iOS (Swift)
Kaushal Elsewhere

It is important to know that endEditing will skip the current autocorrect suggestion if present while resignFirstResponder will apply it. This can be very annoying for users e.g. when using a chat.

Like what you read? Give Marc Knaup a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.