25 lines
706 B
Swift
25 lines
706 B
Swift
import AppIntents
|
|
import AudioToolbox
|
|
import Foundation
|
|
import Shared
|
|
|
|
@available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
|
|
struct WidgetSensorsAppIntent: WidgetConfigurationIntent {
|
|
static let title: LocalizedStringResource = .init("widgets.sensors.title", defaultValue: "Sensors")
|
|
static let description = IntentDescription(
|
|
.init("widgets.sensors.title", defaultValue: "Show sensor state.")
|
|
)
|
|
|
|
@Parameter(
|
|
title: .init("app_intents.choose_sensor.title", defaultValue: "Choose Sensor"),
|
|
size: [
|
|
.systemSmall: 2,
|
|
]
|
|
)
|
|
var sensors: [IntentSensorsAppEntity]?
|
|
|
|
static var parameterSummary: some ParameterSummary {
|
|
Summary()
|
|
}
|
|
}
|