fix(ios): address PR review feedback (#10)

- Remove unused colorSchemeContrast env var from VoiceWakeToast (handled by StatusGlassCard)
- Make StatusPill accessibilityHint conditional on gateway state
- Guard OpenClawShortcuts.updateAppShortcutParameters() with #available(iOS 16, *)
This commit is contained in:
Eulices 2026-03-08 15:20:43 -04:00 committed by Eulices Lopez
parent a6fa201921
commit 83b4b702de
2 changed files with 5 additions and 2 deletions

View File

@ -508,7 +508,10 @@ struct OpenClawApp: App {
GatewaySettingsStore.bootstrapPersistence()
// Register App Shortcuts so the system can discover OpenTalkModeIntent
// for Siri and the Action Button. Must be called at launch.
OpenClawShortcuts.updateAppShortcutParameters()
// Guarded by @available AppShortcutsProvider requires iOS 16+.
if #available(iOS 16, *) {
OpenClawShortcuts.updateAppShortcutParameters()
}
let appModel = NodeAppModel()
_appModel = State(initialValue: appModel)
_gatewayController = State(initialValue: GatewayConnectionController(appModel: appModel))

View File

@ -95,7 +95,7 @@ struct StatusPill: View {
.buttonStyle(.plain)
.accessibilityLabel("Connection Status")
.accessibilityValue(self.accessibilityValue)
.accessibilityHint("Double tap to open settings")
.accessibilityHint(self.gateway == .connected ? "Double tap for connection options" : "Double tap to open settings")
.onAppear { self.updatePulse(for: self.gateway, scenePhase: self.scenePhase, reduceMotion: self.reduceMotion) }
.onDisappear { self.pulse = false }
.onChange(of: self.gateway) { _, newValue in