feat(flow): Live Activity Dynamic Island branding and mis PrimaryLanguage
- 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>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// 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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user