Added the recording flow reporting and command listening on the RecordingViewModel view model in the Recording package target.

This commit is contained in:
2026-07-05 22:00:43 +02:00
parent d473504d75
commit cfe6b1b408
6 changed files with 426 additions and 8 deletions
@@ -0,0 +1,26 @@
import Foundation
/// The reporting service used for development, which swallows the reported lifecycle of the recording flow.
///
/// The service is internal on purpose: it only backs the feature's previews and the default values of its model, and is not part of the
/// package's public interface.
struct DummyReporting: Reporting {
// MARK: Methods
/// Swallows the start of a new recording.
func started(at anchor: Date) async {}
/// Swallows the pause of the ongoing recording.
func paused(elapsed: TimeInterval) async {}
/// Swallows the resumption of a paused recording.
func resumed(anchor: Date) async {}
/// Swallows the processing of the recorded input.
func processing(elapsed: TimeInterval) async {}
/// Swallows the end of the recording flow.
func ended() async {}
}