aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessio Nossa <alessio.nossa@gmail.com>2024-02-28 00:24:09 +0100
committerAlessio Nossa <alessio.nossa@gmail.com>2024-02-28 00:36:19 +0100
commit8a2a4ebd9fcef6eb37ceab687e455d18aaaf62d2 (patch)
treeca0b31f8ed68d3f0f7d927e363a97ba197216209
parentUpdate AppIntents Strings (diff)
downloadwireguard-apple-8a2a4ebd9fcef6eb37ceab687e455d18aaaf62d2.tar.xz
wireguard-apple-8a2a4ebd9fcef6eb37ceab687e455d18aaaf62d2.zip
Add backwards compatibility of GetPeers wit SiriKit version
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com>
-rw-r--r--Sources/WireguardAppIntents/GetPeers.swift4
1 files changed, 3 insertions, 1 deletions
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(