Skip to content

Commit

Permalink
Notify Application changed when SecureState is set
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Dec 15, 2023
1 parent ec166ef commit 7ac4fbc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ extension Application {
return storedValue
}
set {
defer {
shared.objectWillChange.send()
}

guard let newValue else {
return keychain.remove(scope.key)
}
Expand Down

0 comments on commit 7ac4fbc

Please sign in to comment.