From eec39445b49828f6df67a28622ca8047ffed9c06 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 17 Oct 2026 08:59:14 +0200 Subject: [PATCH] Give the empty tvOS translators screen a focusable Done button If the bundled translator list fails to load the screen is a bare ContentUnavailableView, leaving the tvOS remote nothing to focus. --- .../Views/Settings/TranslationContributorsView.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Yattee/Views/Settings/TranslationContributorsView.swift b/Yattee/Views/Settings/TranslationContributorsView.swift index e5499b33..f7e0d4fd 100644 --- a/Yattee/Views/Settings/TranslationContributorsView.swift +++ b/Yattee/Views/Settings/TranslationContributorsView.swift @@ -9,6 +9,9 @@ import NukeUI import SwiftUI struct TranslationContributorsView: View { + #if os(tvOS) + @Environment(\.dismiss) private var dismiss + #endif @State private var contributors: [TranslationContributor] = [] var body: some View { @@ -30,6 +33,13 @@ struct TranslationContributorsView: View { if contributors.isEmpty { ContentUnavailableView { Label(String(localized: "settings.translators.empty"), systemImage: "globe") + } actions: { + #if os(tvOS) + // Nothing else here is focusable; without it the remote is stuck. + Button(String(localized: "common.done")) { + dismiss() + } + #endif } .frame(maxWidth: .infinity, maxHeight: .infinity) } else {