We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f1cf2a commit c6bf618Copy full SHA for c6bf618
TrackWeight/DebugView.swift
@@ -10,9 +10,29 @@ import SwiftUI
10
11
struct DebugView: View {
12
@StateObject var viewModel = ContentViewModel()
13
+ @Environment(\.dismiss) private var dismiss
14
15
var body: some View {
16
VStack {
17
+ // Header with close button
18
+ HStack {
19
+ Text("Debug Console")
20
+ .font(.title2)
21
+ .fontWeight(.semibold)
22
+
23
+ Spacer()
24
25
+ Button(action: {
26
+ dismiss()
27
+ }) {
28
+ Image(systemName: "xmark.circle.fill")
29
30
+ .foregroundColor(.secondary)
31
+ }
32
+ .buttonStyle(PlainButtonStyle())
33
+ .help("Close Debug Console")
34
35
+ .padding(.bottom)
36
37
// Device Selector
38
if !viewModel.availableDevices.isEmpty {
0 commit comments