New bug report / feedback for Apple engineers: Please allow omitting color information (or preferably, most attributes) from rich text copied via SwiftUI Text modified with .textSelection(.enabled).

SwiftUI copies text to the clipboard in the primary text color. E.g., if dark mode is enabled, the copied text will be white. This makes the copied text illegible when pasted into word processors. Solution: Please omit the color attribute from the text.

Filed as FB21959615.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/EshuMarneedi/statuses/116073543762112383 on your instance and quote it. (Note that quoting is not supported in Mastodon.)