View profile VoiceOver action on notifications
This commit is contained in:
parent
c10934f32b
commit
ba59c9bbab
|
@ -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 New Issue