feat(camera): add snap/clip capture
This commit is contained in:
@@ -9,6 +9,7 @@ struct DebugSettings: View {
|
||||
@AppStorage(modelCatalogReloadKey) private var modelCatalogReloadBump: Int = 0
|
||||
@AppStorage(iconOverrideKey) private var iconOverrideRaw: String = IconOverrideSelection.system.rawValue
|
||||
@AppStorage(canvasEnabledKey) private var canvasEnabled: Bool = true
|
||||
@AppStorage(cameraEnabledKey) private var cameraEnabled: Bool = false
|
||||
@AppStorage(deepLinkAgentEnabledKey) private var deepLinkAgentEnabled: Bool = false
|
||||
@State private var modelsCount: Int?
|
||||
@State private var modelsLoading = false
|
||||
@@ -48,6 +49,7 @@ struct DebugSettings: View {
|
||||
self.pathsSection
|
||||
self.quickActionsSection
|
||||
self.canvasSection
|
||||
self.cameraSection
|
||||
self.experimentsSection
|
||||
|
||||
Spacer(minLength: 0)
|
||||
@@ -571,6 +573,20 @@ struct DebugSettings: View {
|
||||
}
|
||||
}
|
||||
|
||||
private var cameraSection: some View {
|
||||
GroupBox("Camera") {
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
Toggle("Allow Camera (agent)", isOn: self.$cameraEnabled)
|
||||
.toggleStyle(.checkbox)
|
||||
.help("When off, camera requests return “Camera disabled by user”.")
|
||||
|
||||
Text("Allows Clawdis to capture a photo or short video via the built-in camera.")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private var experimentsSection: some View {
|
||||
GroupBox("Experiments") {
|
||||
Grid(alignment: .leadingFirstTextBaseline, horizontalSpacing: 14, verticalSpacing: 10) {
|
||||
|
||||
Reference in New Issue
Block a user