title: Repeating local notification is triggered immediately -- how to defer?
body: <p>My goal is to set a notification that will occur N seconds in the future for the first time, and then repeat every N seconds. </p>
  
  <p>However, creating a repeating notification seems to trigger the <code>UNUserNotificationCenterDelegate</code> immediately. </p>
  
  <p>App delegate: </p>
  
  <pre><code>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {
      let center = UNUserNotificationCenter.current()
      center.delegate = self
      return true
  }
  
  func startRequest() {
      let content = UNMutableNotificationContent()
      content.body = bodyText
      content.categoryIdentifier = categoryIdentifier
      content.sound = UNNotificationSound.default()
  
      let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 60, repeats: true)
      trigger.nextTriggerDate()
      let request = UNNotificationRequest(identifier: UUID().uuidString, content: content, trigger: trigger)
  
      let center = UNUserNotificationCenter.current()
      center.add(request)
  }
  
  func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -&gt; Void) {
      // This callback received right after the request is made
      completionHandler([.alert, .sound])
  }
  </code></pre>
  
  <p>I can work around this by creating a non-repeating notification and then starting repeating notifications when it expires. However, I was hoping there was some way to specify a first trigger date -- if memory serves right, the old notification API had this ability, and perhaps I am misunderstanding this new API</p>
  
  <p>Thanks!</p>