mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 21:36:17 +00:00
add ios 17 warnings
This commit is contained in:
@@ -77,6 +77,9 @@ struct ShaderTestingView: View {
|
|||||||
.allowsHitTesting(false)
|
.allowsHitTesting(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Label("iOS 17 Required", systemImage: "exclamationmark.triangle.fill")
|
||||||
|
.foregroundStyle(.yellow)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,6 +122,10 @@ struct SettingsView: View {
|
|||||||
|
|
||||||
Toggle("keep screen awake", systemImage: "cup.and.saucer.fill", isOn: $hostsManager.settings.caffeinate)
|
Toggle("keep screen awake", systemImage: "cup.and.saucer.fill", isOn: $hostsManager.settings.caffeinate)
|
||||||
|
|
||||||
|
if #unavailable(iOS 17), hostsManager.settings.filter == .crt {
|
||||||
|
Label("iOS 17 Required", systemImage: "exclamationmark.triangle.fill")
|
||||||
|
.foregroundStyle(.yellow)
|
||||||
|
}
|
||||||
Picker("terminal filter", selection: $hostsManager.settings.filter) {
|
Picker("terminal filter", selection: $hostsManager.settings.filter) {
|
||||||
ForEach(TerminalFilter.allCases, id: \.self) { filter in
|
ForEach(TerminalFilter.allCases, id: \.self) { filter in
|
||||||
Text(filter.description).tag(filter)
|
Text(filter.description).tag(filter)
|
||||||
|
|||||||
Reference in New Issue
Block a user