title: automatically connect to API once a minute and show notification
body: <p>I have a function with notification with the time interval trigger,  which shows the notification once a minute </p>
  
  <pre><code> func addNotificationWithTimeIntervalTrigger(){
              callApi()
              let content = UNMutableNotificationContent()
              print("PresentTitle",AppDelegate.titleNotification,"\(Date())")
              content.title = AppDelegate.titleNotification
              //content.subtitle = subTitle
              //content.body = body
              content.badge = 1
              content.sound = UNNotificationSound.default()
              let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 60, repeats:true)
              let reguest = UNNotificationRequest(identifier: "identifier", content: content, trigger: trigger)
              UNUserNotificationCenter.current().add(reguest) { (error) in}
  
          }
  </code></pre>
  
  <p>But it shows only one, the old value once a minute, although the data in API has already changed. 
  To see the new value, i need to press the button again, but I do not want that, i want to know how to rewrite this func that this <code>(timeInterval: 60, repeats:true)</code> includes  <code>callApi()</code> or smth like that.</p>