How can I read a string from the clipboard and write it on a button\'s title? I can copy a string to the clipboard with:
UIPasteboard.generalPasteboard().string
Just read it back into a variable like this:
let pasteboardString: String? = UIPasteboard.general.string if let theString = pasteboardString { print("String is \(theString)") }