mirror of
				https://github.com/maxgoedjen/secretive.git
				synced 2025-10-31 23:40:57 +00:00 
			
		
		
		
	* WIP * WIP * WIP * Tweaks. * WIP * WIP * WIP * WIP * WIP * Cleanup * WIP * WIP * WIP * WIP * WIP * WIP * WIP * REmove setup menu item * WIP * . * . * . * Cleaup.
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Swift
		
	
	
	
	
	
| import SwiftUI
 | |
| 
 | |
| struct GettingStartedView: View {
 | |
| 
 | |
|     private let instructions = Instructions()
 | |
| 
 | |
|     @Binding var selectedInstruction: ConfigurationFileInstructions?
 | |
| 
 | |
|     init(selectedInstruction: Binding<ConfigurationFileInstructions?>) {
 | |
|         _selectedInstruction = selectedInstruction
 | |
|     }
 | |
| 
 | |
|     var body: some View {
 | |
|         Form {
 | |
|             Section(.integrationsGettingStartedTitle) {
 | |
|                 Text(.integrationsGettingStartedTitleDescription)
 | |
|             }
 | |
|             Section {
 | |
|                 Group {
 | |
|                     Text(.integrationsGettingStartedSuggestionSsh)
 | |
|                         .onTapGesture {
 | |
|                             self.selectedInstruction = instructions.ssh
 | |
|                         }
 | |
|                     VStack(alignment: .leading, spacing: 5) {
 | |
|                         Text(.integrationsGettingStartedSuggestionShell)
 | |
|                         Text(.integrationsGettingStartedSuggestionShellDefault(shellName: String(localized: instructions.defaultShell.tool)))
 | |
|                             .font(.caption2)
 | |
|                     }
 | |
|                     .onTapGesture {
 | |
|                         self.selectedInstruction = instructions.defaultShell
 | |
|                     }
 | |
|                     Text(.integrationsGettingStartedSuggestionGit)
 | |
|                         .onTapGesture {
 | |
|                             self.selectedInstruction = instructions.git
 | |
|                         }
 | |
|                 }
 | |
|                 .foregroundStyle(.link)
 | |
| 
 | |
|             } header: {
 | |
|                 Text(.integrationsGettingStartedWhatShouldIConfigureTitle)
 | |
|             }
 | |
|             footer: {
 | |
|                 Text(.integrationsGettingStartedMultipleConfig)
 | |
|             }
 | |
|         }
 | |
|         .formStyle(.grouped)
 | |
|     }
 | |
| 
 | |
| }
 |