title: instantiate a viewController func in appDelegate in swift ios
body: <p>I am new to swift iOS and I am not able to call a func in view controller from AppDelegate to activate at certain point in background in macOS bigsur</p>
  <p>In my appDelegate I have below the following:</p>
  <pre><code>func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Void) {
      // new notifications from background
     .myNotifications() // a func in called in my viewController
      
  }
  </code></pre>