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:
parent
415b0ff109
commit
4d3eb05d65
@ -161,7 +161,7 @@ struct SettingsView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section(footer: helpFooter) {
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
Help()
|
Help()
|
||||||
} label: {
|
} label: {
|
||||||
@ -233,6 +233,14 @@ struct SettingsView: View {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
var helpFooter: some View {
|
||||||
|
#if os(tvOS)
|
||||||
|
versionString
|
||||||
|
#else
|
||||||
|
EmptyView()
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
private var versionString: some View {
|
private var versionString: some View {
|
||||||
Text("Yattee \(YatteeApp.version) (build \(YatteeApp.build))")
|
Text("Yattee \(YatteeApp.version) (build \(YatteeApp.build))")
|
||||||
#if os(tvOS)
|
#if os(tvOS)
|
||||||
|
Loading…
Reference in New Issue
Block a user