mirror of
https://github.com/yattee/yattee.git
synced 2025-04-26 00:26:33 +00:00
Fix version footer on tvOS
This commit is contained in:
parent
795b19e07b
commit
78c50bef45
@ -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…
x
Reference in New Issue
Block a user