28 lines
931 B
Swift
28 lines
931 B
Swift
import SwiftUI
|
|
import ProxyCore
|
|
|
|
struct AdvancedSettingsView: View {
|
|
@State private var hideSystemTraffic = IPCManager.shared.hideSystemTraffic
|
|
@State private var showImagePreview = true
|
|
|
|
var body: some View {
|
|
Form {
|
|
Section {
|
|
Toggle("Hide iOS System Traffic", isOn: $hideSystemTraffic)
|
|
.onChange(of: hideSystemTraffic) { _, newValue in
|
|
IPCManager.shared.hideSystemTraffic = newValue
|
|
}
|
|
} footer: {
|
|
Text("Hide traffic from Apple system services like push notifications, iCloud sync, and analytics.")
|
|
}
|
|
|
|
Section {
|
|
Toggle("Show Image Preview", isOn: $showImagePreview)
|
|
} footer: {
|
|
Text("Display thumbnail previews for image responses in the traffic list.")
|
|
}
|
|
}
|
|
.navigationTitle("Advanced")
|
|
}
|
|
}
|