Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Autofill notes text selectable #2151

Merged
merged 7 commits into from
Feb 27, 2024
14 changes: 14 additions & 0 deletions DuckDuckGo/SecureVault/View/PasswordManagementLoginItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,20 @@ private struct NotesView: View {
model.copy(model.notes)
})
}))
.modifier(TextSelectionModifier())
}
}

}

private struct TextSelectionModifier: ViewModifier {

func body(content: Content) -> some View {
if #available(macOS 12, *) {
content
.textSelection(.enabled)
} else {
content
}
}

Expand Down
Loading