I'm trying with the MacCatalyst app which has editor screen with UITextView.
Whenever I select some text [Attributed] & try to copy/paste ( using ctrl + c ) to another Mac app ( i.e Notes, Safari) it works well but if I try to paste it to Mail App's Composer, it doesn't work!
When selecting some text and copying, it prints this log in debug window:
Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future.
When converting Attributed string to Data, I'm applying the Encoding options as below:
[NSAttributedString.DocumentAttributeKey: Any] = [
.documentType: NSAttributedString.DocumentType.rtfd,
.characterEncoding: String.Encoding.utf8
]
Still it doesn't seem to work. Anyone has any idea about this ?