importFoundationimportUserNotifications/// A notification only when the person must act, once per problem (AppModel.notifyProblems). Permission is asked/// the first time one is needed, never at launch.enumNotifications {staticfunc post(title: String, body: String) { UNUserNotificationCenter.current().requestAuthorization(options: [.alert]) { granted, _ inguard granted else { return }let content = UNMutableNotificationContent() content.title = title content.body = body UNUserNotificationCenter.current().add(UNNotificationRequest(identifier: UUID().uuidString, content: content, trigger: nil)) } }}