import SwiftUI struct SettingsView: View { var body: some View { NavigationStack { Form { Section(header: Text("Appearance and Behavior")) { NavigationLink(destination: SettingsSectionProviderView()) { Text("Provider Settings") } NavigationLink(destination: SettingsSectionThumbnailsView()) { Text("Thumbnail Settings") } NavigationLink(destination: SettingsSectionDetailsView()) { Text("Details Settings") } } Section(header: Text("Search")) { SettingsSectionSearchView() } Section(header: Text("Collections")) { NavigationLink(destination: SettingsCollectionsListView()) { Text("Manage Collections") } } Section(header: Text("Settings")) { SettingsSectionSettingsView() } Section(header: Text("Import and Export")) { SettingsSectionImportExportView() } #if DEBUG Section(header: Text("Debug")) { SettingsSectionDebugView() } #endif Section(header: Text("Credits")) { SettingsSectionCreditsView() } } #if os(macOS) .formStyle(.grouped) #endif .navigationTitle("Settings") } } } #Preview { SettingsView() .environmentObject(SettingsManager()) .environmentObject(BooruManager(.yandere)) }