mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
Add a beta tag to the syslogs view
This commit is contained in:
parent
cce235a6c1
commit
2c91575ea8
1 changed files with 35 additions and 0 deletions
|
|
@ -55,6 +55,10 @@ struct ConsoleLogsView: View {
|
|||
.ignoresSafeArea()
|
||||
|
||||
VStack(spacing: 0) {
|
||||
if selectedConsoleTab == .syslog {
|
||||
syslogBetaTag
|
||||
}
|
||||
|
||||
Group {
|
||||
if selectedConsoleTab == .idevice {
|
||||
jitLogsPane
|
||||
|
|
@ -415,6 +419,37 @@ struct ConsoleLogsView: View {
|
|||
.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
|
||||
private var exportControl: some View {
|
||||
let logURL: URL = URL.documentsDirectory.appendingPathComponent("idevice_log.txt")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue