Improve subtitle
This commit is contained in:
parent
a0052e8395
commit
7c60e9b04b
|
@ -16,7 +16,7 @@ class Notifier {
|
||||||
let notificationCenter = UNUserNotificationCenter.current()
|
let notificationCenter = UNUserNotificationCenter.current()
|
||||||
let notificationContent = UNMutableNotificationContent()
|
let notificationContent = UNMutableNotificationContent()
|
||||||
notificationContent.title = "Signed Request from \(provenance.origin.name)"
|
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) {
|
if let iconURL = iconURL(for: provenance), let attachment = try? UNNotificationAttachment(identifier: "icon", url: iconURL, options: nil) {
|
||||||
notificationContent.attachments = [attachment]
|
notificationContent.attachments = [attachment]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue