mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 14:20: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 {
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user