forked from intitni/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugView.swift
More file actions
31 lines (27 loc) · 714 Bytes
/
DebugView.swift
File metadata and controls
31 lines (27 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import LaunchAgentManager
import Preferences
import SwiftUI
final class DebugSettings: ObservableObject {
@AppStorage(\.disableLazyVStack)
var disableLazyVStack: Bool
init() {}
}
struct DebugSettingsView: View {
@StateObject var settings = DebugSettings()
var body: some View {
Section {
Form {
Toggle(isOn: $settings.disableLazyVStack) {
Text("Disable LazyVStack")
}
.toggleStyle(.switch)
}
}.buttonStyle(.copilot)
}
}
struct DebugSettingsView_Preview: PreviewProvider {
static var previews: some View {
DebugSettingsView()
.background(.purple)
}
}