diff --git a/Localizations/Localizable.strings b/Localizations/Localizable.strings index 055c3b1..fc171db 100644 --- a/Localizations/Localizable.strings +++ b/Localizations/Localizable.strings @@ -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"; diff --git a/Views/UIKit/Content Views/NotificationView.swift b/Views/UIKit/Content Views/NotificationView.swift index 7fc35f5..4049ff3 100644 --- a/Views/UIKit/Content Views/NotificationView.swift +++ b/Views/UIKit/Content Views/NotificationView.swift @@ -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 }