In Messages.app you can dismiss the keyboard down by scrolling the list view. To be clear, it isn\'t simply responding to a scrollViewDidScroll event. The keyboard
scrollViewDidScroll
If you're using a tableView and Swift 3 or Swift 4, it works by using:
tableView
tableView.keyboardDismissMode = .onDrag