Fixed in https://github.com/badbundle/vault-app/pull/637 (merged as 5013f980).
Every copy from read-only text now goes through Vault's Pasteboard policy: the Clear Clipboard expiry, the Universal Clipboard setting and the concealed marking.
Plain notes and descriptions:
SelectableTextViewoverridescopy(_:), so the copy never reaches the pasteboard any other way.- Its menu offers only Copy and Select All. Share, Look Up, Translate, dragging and Writing Tools are off.
- Descriptions can now have part of their text selected.
Formatted (Markdown) notes: MarkdownUI can't have a copy Vault controls. So touch and hold now offers Copy Note and Select Text. Select Text opens a half-height sheet where any part of the note can be selected.
Backup key ID: touch and hold for Copy ID.
Widget: Clear Clipboard moved to the App Group defaults, and an earlier choice is carried over, so widget copies now expire. They still never reach other devices.
Settings:
- The Universal Clipboard sheet has a new Notes switch, off by default (C7).
- Descriptions and other details are a separate
.detailtype that always stays on this device. - The row reads Off, On, "Codes Only" or "Notes Only".
Tests:
SelectableTextTestscopies from each real view in a window.PasteboardTests,LocalSettingsTests,WidgetPasteboardTestsandConcealedPasteboardTests.- New and re-recorded snapshots for the sheet, the Select Text sheet and Settings.
Follow-up in VAULT-64 (backlog):
- Cut and Copy inside text fields being edited.
- Dragging a code card out of the feed.