From 8a2a4ebd9fcef6eb37ceab687e455d18aaaf62d2 Mon Sep 17 00:00:00 2001 From: Alessio Nossa Date: Wed, 28 Feb 2024 00:24:09 +0100 Subject: [PATCH] Add backwards compatibility of GetPeers wit SiriKit version Signed-off-by: Alessio Nossa --- Sources/WireguardAppIntents/GetPeers.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/WireguardAppIntents/GetPeers.swift b/Sources/WireguardAppIntents/GetPeers.swift index 00e5399..fe6ba48 100644 --- a/Sources/WireguardAppIntents/GetPeers.swift +++ b/Sources/WireguardAppIntents/GetPeers.swift @@ -5,7 +5,9 @@ import Foundation import AppIntents @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, *) -struct GetPeers: AppIntent { +struct GetPeers: AppIntent, CustomIntentMigratedAppIntent { + + static var intentClassName: String = "GetPeersIntent" static var title = LocalizedStringResource("getPeersIntentName", table: "AppIntents") static var description = IntentDescription(