From 4d3eb05d657c8f15febdf9cad7fab8b61fca7bdb Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 4 Jul 2022 00:39:05 +0200 Subject: [PATCH] Fix version footer on tvOS --- Shared/Settings/SettingsView.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Shared/Settings/SettingsView.swift b/Shared/Settings/SettingsView.swift index ef9d66ef..d8d87ce4 100644 --- a/Shared/Settings/SettingsView.swift +++ b/Shared/Settings/SettingsView.swift @@ -161,7 +161,7 @@ struct SettingsView: View { } } - Section { + Section(footer: helpFooter) { NavigationLink { Help() } label: { @@ -233,6 +233,14 @@ struct SettingsView: View { } #endif + var helpFooter: some View { + #if os(tvOS) + versionString + #else + EmptyView() + #endif + } + private var versionString: some View { Text("Yattee \(YatteeApp.version) (build \(YatteeApp.build))") #if os(tvOS)