From 82a1813064e88c4c3e5b8c15b6cad2ee6c00de18 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Tue, 2 Feb 2021 13:54:22 -0800 Subject: [PATCH] VoiceOver wip --- Localizations/Localizable.strings | 2 ++ View Controllers/TableViewController.swift | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Localizations/Localizable.strings b/Localizations/Localizable.strings index a55c8a5..8dafb87 100644 --- a/Localizations/Localizable.strings +++ b/Localizations/Localizable.strings @@ -265,7 +265,9 @@ "status.favorite-button.accessibility-label" = "Favorite"; "status.favorite-button.undo.accessibility-label" = "Unfavorite"; "status.show-more" = "Show More"; +"status.show-more-all-button.accessibilty-label" = "Show more for all"; "status.show-less" = "Show Less"; +"status.show-less-all-button.accessibilty-label" = "Show less for all"; "status.spoiler-text-placeholder" = "Write your warning here"; "status.unbookmark" = "Unbookmark"; "status.unmute" = "Unmute conversation"; diff --git a/View Controllers/TableViewController.swift b/View Controllers/TableViewController.swift index 58ea2dd..944f055 100644 --- a/View Controllers/TableViewController.swift +++ b/View Controllers/TableViewController.swift @@ -509,12 +509,12 @@ private extension TableViewController { navigationItem.rightBarButtonItem = nil case .expand: navigationItem.rightBarButtonItem = UIBarButtonItem( - title: NSLocalizedString("status.show-more", comment: ""), + title: NSLocalizedString("status.show-more-all-button.accessibilty-label", comment: ""), image: UIImage(systemName: "eye"), primaryAction: UIAction { [weak self] _ in self?.viewModel.toggleExpandAll() }) case .collapse: navigationItem.rightBarButtonItem = UIBarButtonItem( - title: NSLocalizedString("status.show-less", comment: ""), + title: NSLocalizedString("status.show-less-all-button.accessibilty-label", comment: ""), image: UIImage(systemName: "eye.slash"), primaryAction: UIAction { [weak self] _ in self?.viewModel.toggleExpandAll() }) }