Slide 23
Slide 23 text
ଈ࣌௨ͷ࣮ʢϩʔΧϧʣ
import UserNotifications
let content = UNMutableNotificationContent()
content.title = "Reminder"
content.body = "Take medicine."
content.interruptionLevel = .timeSensitive
let trigger = UNCalendarNotificationTrigger(
dateMatching: date,
repeats: false
)
let request = UNNotificationRequest(
identifier: identifier,
content: content,
trigger: trigger
)