mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +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" = "About";
|
||||||
"about.acknowledgments" = "Acknowledgments";
|
"about.acknowledgments" = "Acknowledgments";
|
||||||
"accessibility.activate-link-%@" = "Activate link: %@";
|
"accessibility.activate-link-%@" = "Activate link: %@";
|
||||||
|
"accessibility.copy-text" = "Copy text";
|
||||||
"account.%@-followers" = "%@'s Followers";
|
"account.%@-followers" = "%@'s Followers";
|
||||||
"account.accept-follow-request-button.accessibility-label" = "Accept follow request";
|
"account.accept-follow-request-button.accessibility-label" = "Accept follow request";
|
||||||
"account.avatar.accessibility-label-%@" = "Avatar: %@";
|
"account.avatar.accessibility-label-%@" = "Avatar: %@";
|
||||||
|
|
|
@ -755,6 +755,15 @@ private extension StatusView {
|
||||||
return true
|
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 ?? [])
|
actions.append(contentsOf: bodyView.accessibilityCustomActions ?? [])
|
||||||
|
|
||||||
if menuButton.isEnabled {
|
if menuButton.isEnabled {
|
||||||
|
|
Loading…
Reference in a new issue