mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-03-30 05:47:24 +02:00
Cleanup of agent
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import Foundation
|
||||
import SecretKit
|
||||
import SecretAgentKit
|
||||
import UserNotifications
|
||||
|
||||
class Notifier {
|
||||
@@ -10,7 +11,7 @@ class Notifier {
|
||||
}
|
||||
}
|
||||
|
||||
func notify<SecretType: Secret>(accessTo secret: SecretType) {
|
||||
func notify(accessTo secret: AnySecret) {
|
||||
let notificationCenter = UNUserNotificationCenter.current()
|
||||
let notificationContent = UNMutableNotificationContent()
|
||||
notificationContent.title = "Signed Request"
|
||||
@@ -20,3 +21,11 @@ class Notifier {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extension Notifier: SigningWitness {
|
||||
|
||||
func witness(accessTo secret: AnySecret) throws {
|
||||
notify(accessTo: secret)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user