From 68f143460a4693db593e10b092e7303d47ca12db Mon Sep 17 00:00:00 2001 From: David Cordero Date: Sun, 16 Jan 2022 17:37:08 +0100 Subject: [PATCH] Add missing accessibility label to the settings buttons --- Shared/Coordinators/MainCoordinator/tvOSMainTabCoordinator.swift | 1 + Swiftfin/Views/HomeView.swift | 1 + Swiftfin/Views/ServerListView.swift | 1 + 3 files changed, 3 insertions(+) diff --git a/Shared/Coordinators/MainCoordinator/tvOSMainTabCoordinator.swift b/Shared/Coordinators/MainCoordinator/tvOSMainTabCoordinator.swift index ade0eb88..122cc829 100644 --- a/Shared/Coordinators/MainCoordinator/tvOSMainTabCoordinator.swift +++ b/Shared/Coordinators/MainCoordinator/tvOSMainTabCoordinator.swift @@ -85,5 +85,6 @@ final class MainTabCoordinator: TabCoordinatable { @ViewBuilder func makeSettingsTab(isActive: Bool) -> some View { Image(systemName: "gearshape.fill") + .accessibilityLabel(L10n.settings) } } diff --git a/Swiftfin/Views/HomeView.swift b/Swiftfin/Views/HomeView.swift index e6e8f764..792f0851 100644 --- a/Swiftfin/Views/HomeView.swift +++ b/Swiftfin/Views/HomeView.swift @@ -127,6 +127,7 @@ struct HomeView: View { homeRouter.route(to: \.settings) } label: { Image(systemName: "gearshape.fill") + .accessibilityLabel(L10n.settings) } } } diff --git a/Swiftfin/Views/ServerListView.swift b/Swiftfin/Views/ServerListView.swift index 79725c0f..e561acd4 100644 --- a/Swiftfin/Views/ServerListView.swift +++ b/Swiftfin/Views/ServerListView.swift @@ -104,6 +104,7 @@ struct ServerListView: View { serverListRouter.route(to: \.basicAppSettings) } label: { Image(systemName: "gearshape.fill") + .accessibilityLabel(L10n.settings) } }