Initial project setup - Phases 1-3 complete

This commit is contained in:
Trey t
2026-04-06 11:28:40 -05:00
commit c77e506db5
293 changed files with 14233 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
import SwiftUI
struct AppSettingsView: View {
@State private var analyticsEnabled = false
@State private var crashReportingEnabled = true
@State private var showClearCacheConfirmation = false
var body: some View {
Form {
Section {
Toggle("Analytics", isOn: $analyticsEnabled)
Toggle("Crash Reporting", isOn: $crashReportingEnabled)
} footer: {
Text("Help improve the app by sharing anonymous usage data.")
}
Section {
Button("Clear App Cache", role: .destructive) {
showClearCacheConfirmation = true
}
} footer: {
Text("Remove all cached data. This does not delete captured traffic.")
}
Section("About") {
LabeledContent("Version", value: "1.0.0")
LabeledContent("Build", value: "1")
}
}
.navigationTitle("App Settings")
.confirmationDialog("Clear Cache", isPresented: $showClearCacheConfirmation) {
Button("Clear Cache", role: .destructive) {
// TODO: Clear URL cache, image cache, etc.
}
} message: {
Text("This will clear all cached data.")
}
}
}