title: How do I paste programmatically with Swift?
body: <p>I want to have a button the user can press that will automatically paste whatever text is in the clipboard into a <code>UITextView</code>.</p>
  
  <p>How can I do that in Swift?</p>
  
  <p>It has been answered <a href="https://stackoverflow.com/questions/8045970/how-to-do-copy-paste-function-programmatically-in-iphone">here</a> but it's in Objective-C.</p>