6489340b2e
- Add OSGKeyboardLiveActivity widget extension (ActivityKit) with branded compactLeading mark in the Dynamic Island during Flow sessions - Wire FlowLiveActivityController into FlowSessionManager lifecycle - Set keyboard PrimaryLanguage to mis in project.yml, Info.plist, and at runtime - Enable NSSupportsLiveActivities on main app and widget extension targets Co-authored-by: Rocky <hkgood@users.noreply.github.com>
23 lines
686 B
Swift
23 lines
686 B
Swift
// FlowActivityAttributes.swift
|
|
// OSGKeyboard · Live Activity
|
|
//
|
|
// Shared ActivityKit model compiled into the widget extension and the
|
|
// main app so `FlowLiveActivityController` can start/update sessions.
|
|
|
|
import ActivityKit
|
|
import Foundation
|
|
|
|
/// Live Activity shown in the Dynamic Island while a Flow session is active.
|
|
struct FlowActivityAttributes: ActivityAttributes {
|
|
/// Dynamic content updated as the user records and processes speech.
|
|
struct ContentState: Codable, Hashable, Sendable {
|
|
var phase: Phase
|
|
|
|
enum Phase: String, Codable, Hashable, Sendable {
|
|
case idle
|
|
case recording
|
|
case processing
|
|
}
|
|
}
|
|
}
|