mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-21 15:50:59 +00:00
View profile VoiceOver action on notifications
This commit is contained in:
parent
c10934f32b
commit
ba59c9bbab
2 changed files with 10 additions and 0 deletions
|
@ -175,6 +175,7 @@
|
|||
"main-navigation.notifications" = "Notifications";
|
||||
"main-navigation.conversations" = "Messages";
|
||||
"metatext" = "Metatext";
|
||||
"notification.accessibility.view-profile" = "View profile";
|
||||
"notification.signed-in-as-%@" = "Logged in as %@";
|
||||
"notification.new-items" = "New notifications";
|
||||
"notification.poll" = "A poll you have voted in has ended";
|
||||
|
|
|
@ -250,6 +250,15 @@ private extension NotificationView {
|
|||
}
|
||||
|
||||
self.accessibilityAttributedLabel = accessibilityAttributedLabel
|
||||
|
||||
accessibilityCustomActions = [
|
||||
UIAccessibilityCustomAction(
|
||||
name: NSLocalizedString("notification.accessibility.view-profile", comment: "")) { [weak self] _ in
|
||||
self?.notificationConfiguration.viewModel.accountSelected()
|
||||
|
||||
return true
|
||||
}
|
||||
]
|
||||
}
|
||||
// swiftlint:enable function_body_length
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue