Implemented the resumed interrupted recordings and allowed processing discards on the RecordingViewModel view model in the Recording package target.

This commit is contained in:
2026-07-05 16:16:53 +02:00
parent 8576d6bac6
commit c2ac476257
14 changed files with 563 additions and 309 deletions
@@ -47,7 +47,9 @@ public extension Capturing {
// MARK: - Events
/// An event emitted by a ``Capturing`` service outside its method calls.
public enum CapturingEvent: Sendable {
public enum CapturingEvent: Equatable, Sendable {
/// The system interrupted the ongoing capture, pausing it.
case interrupted
/// The system ended the interruption of the capture, hinting whether the capture may resume right away.
case interruptionEnded(shouldResume: Bool)
}