Improve subtitle

This commit is contained in:
Max Goedjen 2020-03-21 17:55:31 -07:00
parent a0052e8395
commit 7c60e9b04b
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8

View File

@ -16,7 +16,7 @@ class Notifier {
let notificationCenter = UNUserNotificationCenter.current()
let notificationContent = UNMutableNotificationContent()
notificationContent.title = "Signed Request from \(provenance.origin.name)"
notificationContent.subtitle = secret.name
notificationContent.subtitle = "Using secret \"\(secret.name)\""
if let iconURL = iconURL(for: provenance), let attachment = try? UNNotificationAttachment(identifier: "icon", url: iconURL, options: nil) {
notificationContent.attachments = [attachment]
}