I have some text that user will be able to paste later on into UITextField. How can I copy that text programmatically?
By from jtbandes's Answer
@IBAction fucn btnCopyClick(_ sender: UIButton)
{
UIPasteboard.general.string = YourTextField.text!
}
let contentText = UIPasteboard.general.string