add ios 17 warnings

This commit is contained in:
neon443
2025-08-31 22:44:56 +01:00
parent 262411049f
commit 76a6d9d2f2
2 changed files with 7 additions and 0 deletions

View File

@@ -77,6 +77,9 @@ struct ShaderTestingView: View {
.allowsHitTesting(false) .allowsHitTesting(false)
} }
} }
} else {
Label("iOS 17 Required", systemImage: "exclamationmark.triangle.fill")
.foregroundStyle(.yellow)
} }
} }
} }

View File

@@ -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)