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:
parent
a6fa201921
commit
83b4b702de
@ -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))
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user