In this video, we learn, how to hide the keyboard by either clicking outside the keyboard or on the "return" key.
1. How To Hide The Keyboard in iOS - Xcode 9.1 (Swift 4)
2. Close iOS Keyboard by touching anywhere using Swift.
3. How to Dismiss UITextField’s Keyboard in iOS