mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 00:01:00 +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.notifications" = "Notifications";
|
||||||
"main-navigation.conversations" = "Messages";
|
"main-navigation.conversations" = "Messages";
|
||||||
"metatext" = "Metatext";
|
"metatext" = "Metatext";
|
||||||
|
"notification.accessibility.view-profile" = "View profile";
|
||||||
"notification.signed-in-as-%@" = "Logged in as %@";
|
"notification.signed-in-as-%@" = "Logged in as %@";
|
||||||
"notification.new-items" = "New notifications";
|
"notification.new-items" = "New notifications";
|
||||||
"notification.poll" = "A poll you have voted in has ended";
|
"notification.poll" = "A poll you have voted in has ended";
|
||||||
|
|
|
@ -250,6 +250,15 @@ private extension NotificationView {
|
||||||
}
|
}
|
||||||
|
|
||||||
self.accessibilityAttributedLabel = accessibilityAttributedLabel
|
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
|
// swiftlint:enable function_body_length
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue