You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"\(log.type.rawValue.capitalized)\(log.caller ==nil?"":"from \(log.caller!)") at \(log.date.formatted()): \(log.body)"
91
+
}()
92
+
} label:{
93
+
Label("Copy", systemImage:"doc.on.clipboard")
94
+
}
95
+
}
96
+
}
97
+
.searchable(text: $searchText)
98
+
}
99
+
.overlay{
100
+
if logs.isEmpty {
101
+
Text("No Logs")
102
+
.foregroundStyle(.gray)
103
+
.frame(maxHeight:.infinity)
88
104
}
89
105
}
90
106
}
@@ -94,9 +110,9 @@ struct DebugLogsView: View {
94
110
NavigationView{
95
111
DebugLogsView()
96
112
.onAppear{
97
-
#if DEBUG
113
+
#if DEBUG
98
114
DebugLogManager.shared.logs.append(DebugLog(caller:"DebugLogsView", body:"This is a testing error, designed to be multiple lines long.", type:.error, target:.app, date:Date()))
0 commit comments