title: Swift: Enable "dismiss keyboard" button on iPhone?
body: <p>I see numerous posts (e.g. <a href="https://stackoverflow.com/questions/24908966/hide-keyboard-for-text-field-in-swift-programming-language">"hide keyboard for text field in swift programming language"</a>) about how to make the keyboard disappear after hitting the return button, or by clicking outside the UITextView (and subsequently resigning first responder, and/or setting endEditing to true).  This is not what I want to do; I neither want to use the return key -- I want the user to be able to use the return key for actually adding a newline to the text they're entering in the UITextView -- nor force the user to click outside in order to dismiss the keyboard.    </p>
  
  <p>On an iPad there is a "dismiss keyboard" button which naturally appears, as part of the keyboard itself, that dismisses the keyboard.  It's usually in the lower right of the keyboard (below the right shift key), and it's a little picture of a keyboard with a down arrow on it.</p>
  
  <p>How does one enable this button on an iPhone, i.e. to have the keyboard which appears also include the dismiss button?   </p>
  
  <p>This post: <a href="https://stackoverflow.com/questions/21635094/dismiss-iphone-uitextview-keyboard">"dismiss iphone UITextView Keyboard"</a> seems to advocate adding a toolbar to the top of the keyboard.  Is there not a way to simply select an optional keyboard that includes a dismiss-key option, similar to the way one can provide a keyboard with "@" on the main keyboard screen when an email address is expected?</p>
  
  <p>Thanks.</p>
  
  <p>PS- For clarity: I do not want to set the return key to "Done" (as per <a href="https://stackoverflow.com/questions/10077155/how-to-add-done-button-to-the-keyboard">this post</a>), I want to keep it as a return key.  I'm willing to add an extra UIButton if that's the only way, but it seems like there should be a keyboard option which includes a dismiss button already, in addition to the return key.</p>