From 7ac4fbc1ee866380ddccb16139ad9006245e54f0 Mon Sep 17 00:00:00 2001 From: 0xLeif Date: Fri, 15 Dec 2023 12:45:54 -0700 Subject: [PATCH] Notify Application changed when SecureState is set --- .../AppState/Application/Types/Application+SecureState.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/AppState/Application/Types/Application+SecureState.swift b/Sources/AppState/Application/Types/Application+SecureState.swift index e932fe9..82363f5 100644 --- a/Sources/AppState/Application/Types/Application+SecureState.swift +++ b/Sources/AppState/Application/Types/Application+SecureState.swift @@ -26,6 +26,10 @@ extension Application { return storedValue } set { + defer { + shared.objectWillChange.send() + } + guard let newValue else { return keychain.remove(scope.key) }