Dismissing the keyboard


Until I tried it out, this sentence didn’t mean anything to me. e.g. What is causing the text field to resign its first responder status?

I think it would be helpful to explain that by adding this code, we are simply handling the user pressing “Return” on the keyboard to dismiss it from the screen.