Remove disk logging UI from iOS app info

- Remove Debug section from iOS AppInfoView
- Keep Debug section for macOS only
- Aligns UI with logging behavior (macOS only)
This commit is contained in:
jack
2025-07-05 19:35:37 +02:00
parent a83dee34ba
commit cdb93543ba
-27
View File
@@ -125,14 +125,12 @@ struct AppInfoView: View {
.foregroundColor(secondaryTextColor)
.textSelection(.enabled)
#if os(macOS)
Button("Open in Finder") {
NSWorkspace.shared.selectFile(LoggingService.shared.getLogFileURL().path, inFileViewerRootedAtPath: "")
}
.buttonStyle(.plain)
.foregroundColor(.blue)
.font(.system(size: 12, design: .monospaced))
#endif
}
}
@@ -233,31 +231,6 @@ struct AppInfoView: View {
.foregroundColor(textColor)
}
// Debug Info
VStack(alignment: .leading, spacing: 16) {
SectionHeader("Debug")
VStack(alignment: .leading, spacing: 8) {
Text("Log Location:")
.font(.system(size: 14, weight: .semibold, design: .monospaced))
.foregroundColor(textColor)
Text(LoggingService.shared.getLogFileURL().path)
.font(.system(size: 12, design: .monospaced))
.foregroundColor(secondaryTextColor)
.textSelection(.enabled)
#if os(macOS)
Button("Open in Finder") {
NSWorkspace.shared.selectFile(LoggingService.shared.getLogFileURL().path, inFileViewerRootedAtPath: "")
}
.buttonStyle(.plain)
.foregroundColor(.blue)
.font(.system(size: 12, design: .monospaced))
#endif
}
}
// Version
HStack {
Spacer()