mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-03 22:22:02 +00:00 
			
		
		
		
	Fix version footer on tvOS
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user