1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 22:30:32 +05:30

Fix version footer on tvOS

This commit is contained in:
Arkadiusz Fal 2022-07-04 00:39:05 +02:00
parent 415b0ff109
commit 4d3eb05d65

View File

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