From f08d009a42f0e7f2e400b927a356b99a29a0f451 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Sat, 25 Mar 2023 23:00:00 -0700 Subject: [PATCH] Fixed `ScanIntent.parameterSummary` --- .../AppIntents/Intent/ScanIntent.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BluetoothExplorer.swiftpm/AppIntents/Intent/ScanIntent.swift b/BluetoothExplorer.swiftpm/AppIntents/Intent/ScanIntent.swift index 21b1ad8..0b1c47f 100644 --- a/BluetoothExplorer.swiftpm/AppIntents/Intent/ScanIntent.swift +++ b/BluetoothExplorer.swiftpm/AppIntents/Intent/ScanIntent.swift @@ -13,7 +13,7 @@ import GATT @available(macOS 13, iOS 16, watchOS 9, tvOS 16, *) struct ScanIntent: AppIntent { - static var title: LocalizedStringResource { "Bluetooth scan" } + static var title: LocalizedStringResource { "Scan for nearby Bluetooth devices." } static var description: IntentDescription { IntentDescription( @@ -23,6 +23,10 @@ struct ScanIntent: AppIntent { ) } + static var parameterSummary: some ParameterSummary { + Summary("Scan nearby devices for \(\.$duration) seconds with duplicate filtering set to \(\.$filterDuplicates) and filtering by the specified services \(\.$services).") + } + @Parameter( title: "Duration", description: "Duration in seconds for scanning.",