mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:11:45 +00:00
a11y announcement of a time limit when the session verification request appears.
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
"a11y_send_files" = "Send files";
|
"a11y_send_files" = "Send files";
|
||||||
"a11y_show_password" = "Show password";
|
"a11y_show_password" = "Show password";
|
||||||
"a11y_start_call" = "Start a call";
|
"a11y_start_call" = "Start a call";
|
||||||
|
"a11y_time_limited_action_required" = "Time limited action required";
|
||||||
"a11y_user_menu" = "User menu";
|
"a11y_user_menu" = "User menu";
|
||||||
"a11y_view_avatar" = "View avatar";
|
"a11y_view_avatar" = "View avatar";
|
||||||
"a11y_view_details" = "View details";
|
"a11y_view_details" = "View details";
|
||||||
|
|||||||
@@ -100,6 +100,8 @@ internal enum L10n {
|
|||||||
internal static var a11yShowPassword: String { return L10n.tr("Localizable", "a11y_show_password") }
|
internal static var a11yShowPassword: String { return L10n.tr("Localizable", "a11y_show_password") }
|
||||||
/// Start a call
|
/// Start a call
|
||||||
internal static var a11yStartCall: String { return L10n.tr("Localizable", "a11y_start_call") }
|
internal static var a11yStartCall: String { return L10n.tr("Localizable", "a11y_start_call") }
|
||||||
|
/// Time limited action required
|
||||||
|
internal static var a11yTimeLimitedActionRequired: String { return L10n.tr("Localizable", "a11y_time_limited_action_required") }
|
||||||
/// User menu
|
/// User menu
|
||||||
internal static var a11yUserMenu: String { return L10n.tr("Localizable", "a11y_user_menu") }
|
internal static var a11yUserMenu: String { return L10n.tr("Localizable", "a11y_user_menu") }
|
||||||
/// View avatar
|
/// View avatar
|
||||||
|
|||||||
+5
@@ -31,6 +31,11 @@ struct SessionVerificationScreen: View {
|
|||||||
.interactiveDismissDisabled()
|
.interactiveDismissDisabled()
|
||||||
.navigationBarBackButtonHidden(context.viewState.verificationState == .verified)
|
.navigationBarBackButtonHidden(context.viewState.verificationState == .verified)
|
||||||
.toolbar { toolbar }
|
.toolbar { toolbar }
|
||||||
|
.onAppear {
|
||||||
|
var announcement = AttributedString(L10n.a11yTimeLimitedActionRequired)
|
||||||
|
announcement.accessibilitySpeechAnnouncementPriority = .high
|
||||||
|
AccessibilityNotification.Announcement(announcement).post()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Private
|
// MARK: - Private
|
||||||
|
|||||||
Reference in New Issue
Block a user