mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-22 05:26:30 +00:00
Add copy text VoiceOver action
This commit is contained in:
parent
328c38f27f
commit
533a1d1830
2 changed files with 10 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
"about" = "About";
|
||||
"about.acknowledgments" = "Acknowledgments";
|
||||
"accessibility.activate-link-%@" = "Activate link: %@";
|
||||
"accessibility.copy-text" = "Copy text";
|
||||
"account.%@-followers" = "%@'s Followers";
|
||||
"account.accept-follow-request-button.accessibility-label" = "Accept follow request";
|
||||
"account.avatar.accessibility-label-%@" = "Avatar: %@";
|
||||
|
|
|
@ -755,6 +755,15 @@ private extension StatusView {
|
|||
return true
|
||||
})
|
||||
|
||||
actions.append(
|
||||
UIAccessibilityCustomAction(
|
||||
name: NSLocalizedString("accessibility.copy-text",
|
||||
comment: "")) { [weak self] _ in
|
||||
UIPasteboard.general.string = self?.bodyView.contentTextView.text
|
||||
|
||||
return true
|
||||
})
|
||||
|
||||
actions.append(contentsOf: bodyView.accessibilityCustomActions ?? [])
|
||||
|
||||
if menuButton.isEnabled {
|
||||
|
|
Loading…
Reference in a new issue