2026-07-03 20:05:11 +02:00
|
|
|
import Recording
|
2026-07-03 15:11:33 +02:00
|
|
|
import SwiftUI
|
|
|
|
|
|
2026-07-03 20:05:11 +02:00
|
|
|
/// The root view of the Attendi sample app.
|
|
|
|
|
///
|
|
|
|
|
/// The view hosts the `RecordingView` feature from the `Recording` target of the `Features` package, which drives the whole recording flow.
|
2026-07-03 15:11:33 +02:00
|
|
|
struct ContentView: View {
|
2026-07-03 20:05:11 +02:00
|
|
|
|
|
|
|
|
// MARK: Body
|
|
|
|
|
|
2026-07-03 21:33:46 +02:00
|
|
|
/// The content of the view: the recording feature's view, attached to the simulated recording and transcribing services.
|
2026-07-03 15:11:33 +02:00
|
|
|
var body: some View {
|
2026-07-03 21:33:46 +02:00
|
|
|
RecordingView(
|
|
|
|
|
recorder: SimulatedRecordingService(),
|
|
|
|
|
transcriber: SimulatedTranscribingService()
|
|
|
|
|
)
|
2026-07-03 15:11:33 +02:00
|
|
|
}
|
2026-07-03 20:05:11 +02:00
|
|
|
|
2026-07-03 15:11:33 +02:00
|
|
|
}
|
|
|
|
|
|
2026-07-03 20:05:11 +02:00
|
|
|
// MARK: - Previews
|
|
|
|
|
|
|
|
|
|
#Preview(
|
|
|
|
|
"Content view"
|
|
|
|
|
) {
|
2026-07-03 15:11:33 +02:00
|
|
|
ContentView()
|
|
|
|
|
}
|