Add a beta tag to the syslogs view

This commit is contained in:
Stephen B 2025-11-10 17:50:59 -05:00
parent cce235a6c1
commit 2c91575ea8

View file

@ -55,6 +55,10 @@ struct ConsoleLogsView: View {
.ignoresSafeArea() .ignoresSafeArea()
VStack(spacing: 0) { VStack(spacing: 0) {
if selectedConsoleTab == .syslog {
syslogBetaTag
}
Group { Group {
if selectedConsoleTab == .idevice { if selectedConsoleTab == .idevice {
jitLogsPane jitLogsPane
@ -415,6 +419,37 @@ struct ConsoleLogsView: View {
.padding(.vertical, 10) .padding(.vertical, 10)
} }
private var syslogBetaTag: some View {
HStack(spacing: 10) {
Label {
Text("Syslogs")
.font(.headline.weight(.semibold))
} icon: {
Image(systemName: "waveform.path.ecg")
.foregroundColor(accentColor)
}
Text("BETA")
.font(.caption2.weight(.bold))
.padding(.horizontal, 10)
.padding(.vertical, 4)
.foregroundColor(accentColor)
.background(
Capsule()
.fill(accentColor.opacity(colorScheme == .dark ? 0.22 : 0.12))
)
.overlay(
Capsule()
.stroke(accentColor.opacity(0.45), lineWidth: 1)
)
Spacer(minLength: 0)
}
.padding(.horizontal, 16)
.padding(.bottom, 8)
.transition(.opacity)
}
@ViewBuilder @ViewBuilder
private var exportControl: some View { private var exportControl: some View {
let logURL: URL = URL.documentsDirectory.appendingPathComponent("idevice_log.txt") let logURL: URL = URL.documentsDirectory.appendingPathComponent("idevice_log.txt")