Skip to content

Instantly share code, notes, and snippets.

Avatar

Doney den Ouden Dexwell

View GitHub Profile
@Dexwell
Dexwell / LocalCommunicationNotification.swift
Last active Nov 7, 2021
iOS 15 Local Communication Notification
View LocalCommunicationNotification.swift
var content = UNMutableNotificationContent()
content.title = "Title"
content.subtitle = "Subtitle"
content.body = "Text"
content.sound = nil
content.categoryIdentifier = "categoryName"
var personNameComponents = PersonNameComponents()
personNameComponents.nickname = "Sender Name"