macos: paste protection text should be selectable

This commit is contained in:
Mitchell Hashimoto
2023-11-04 20:48:18 -07:00
parent 04acaf8b20
commit 5dac8fba96
2 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class PasteProtectionController: NSWindowController {
override func windowDidLoad() {
guard let window = window else { return }
window.contentView = NSHostingView(rootView: PasteProtectionView(
contents: "Hello",
contents: "Hello\nWorld",
delegate: delegate
))
}

View File

@ -29,7 +29,6 @@ struct PasteProtectionView: View {
}
TextEditor(text: .constant(contents))
.disabled(true)
.textSelection(.enabled)
.font(.system(.body, design: .monospaced))
.padding(.all, 4)