How does one copy the contents of a Text field to the iOS clipboard?
I have the following code & want to replace the "print(..)" statement with a statement that copies the content of the text field to the iOS clipboard.
Text(self.BLEinfo.sendRcvLog)
.onTapGesture(count: 2) {
print("Copy text field content to ClipBoard Here..")
}
Can't seem to find any SwiftUI examples how to do this.
Thanks!