mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
19 lines
599 B
Swift
19 lines
599 B
Swift
import AppIntents
|
|
import SwiftUI
|
|
import WidgetKit
|
|
|
|
@available(iOS 18.0, *)
|
|
struct HexDictationControl: ControlWidget {
|
|
static let kind = "com.kitlangton.hex.mobile.control.dictate"
|
|
|
|
var body: some ControlWidgetConfiguration {
|
|
StaticControlConfiguration(kind: Self.kind) {
|
|
ControlWidgetButton(action: ToggleHexControlIntent()) {
|
|
Label("Dictate", systemImage: "mic.fill")
|
|
Text("Hex")
|
|
}
|
|
}
|
|
.displayName("Dictate with Hex")
|
|
.description("Starts or finishes on-device dictation and copies the text.")
|
|
}
|
|
}
|