xxxxxxxxxx
@IBAction func copyButtonAction(_ sender: UIButton) {
print("✓ Copied Done")
copyButton.setTitle("✓ Copied!",for: .normal)
copyButton.titleLabel?.font = UIFont.boldSystemFont(ofSize: 25.0)
copyButton.tintColor = .yellow
UIPasteboard.general.string = nameLabel!.text // or use sender.titleLabel.text
}