Skip to content

Commit

Permalink
Fixed ScanIntent.parameterSummary
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Mar 26, 2023
1 parent 4787144 commit f08d009
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BluetoothExplorer.swiftpm/AppIntents/Intent/ScanIntent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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.",
Expand Down

0 comments on commit f08d009

Please sign in to comment.