Files
attendi/Apps/Attendi/ContentView.swift
T

28 lines
671 B
Swift
Raw Normal View History

import Recording
import SwiftUI
/// 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.
struct ContentView: View {
// MARK: Body
/// The content of the view: the recording feature's view, attached to the microphone-backed recording service and the simulated transcribing service.
var body: some View {
RecordingView(
recorder: AudioRecordingService(),
transcriber: SimulatedTranscribingService()
)
}
}
// MARK: - Previews
#Preview(
"Content view"
) {
ContentView()
}