VoiceOver wip

This commit is contained in:
Justin Mazzocchi 2021-02-02 13:54:22 -08:00
parent 45517c0df6
commit 82a1813064
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
2 changed files with 4 additions and 2 deletions

View file

@ -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";

View file

@ -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() })
}