From 76a6d9d2f2179f0cd1bc4b05f3edcda56a09bd31 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Sun, 31 Aug 2025 22:44:56 +0100 Subject: [PATCH] add ios 17 warnings --- ShhShell/Terminal/ShaderTestingView.swift | 3 +++ ShhShell/Views/Settings/SettingsView.swift | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ShhShell/Terminal/ShaderTestingView.swift b/ShhShell/Terminal/ShaderTestingView.swift index 364752b..c7eeebb 100644 --- a/ShhShell/Terminal/ShaderTestingView.swift +++ b/ShhShell/Terminal/ShaderTestingView.swift @@ -77,6 +77,9 @@ struct ShaderTestingView: View { .allowsHitTesting(false) } } + } else { + Label("iOS 17 Required", systemImage: "exclamationmark.triangle.fill") + .foregroundStyle(.yellow) } } } diff --git a/ShhShell/Views/Settings/SettingsView.swift b/ShhShell/Views/Settings/SettingsView.swift index 4902940..ac034f1 100644 --- a/ShhShell/Views/Settings/SettingsView.swift +++ b/ShhShell/Views/Settings/SettingsView.swift @@ -122,6 +122,10 @@ struct SettingsView: View { 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) { ForEach(TerminalFilter.allCases, id: \.self) { filter in Text(filter.description).tag(filter)