Implement GetPeers AppIntent
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
import UIKit
|
||||
import os.log
|
||||
import Intents
|
||||
import AppIntents
|
||||
|
||||
@UIApplicationMain
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
@@ -47,6 +48,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
tunnelsManager.activationDelegate = self.mainVC
|
||||
|
||||
if #available(iOS 16.0, *) {
|
||||
AppDependencyManager.shared.add(dependency: tunnelsManager)
|
||||
}
|
||||
|
||||
NotificationCenter.default.post(name: AppDelegate.tunnelsManagerReadyNotificationName,
|
||||
object: self,
|
||||
userInfo: nil)
|
||||
|
||||
Reference in New Issue
Block a user