Integrated the RecordingView feature into the ContentView view in the Sample app target.
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
import SwiftUI
|
||||
|
||||
/// The entry point of the Attendi sample app.
|
||||
@main
|
||||
struct AttendiApp: App {
|
||||
|
||||
// MARK: Body
|
||||
|
||||
/// The content of the app: a single window group showing the ``ContentView``.
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
ContentView()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,17 +1,24 @@
|
||||
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.
|
||||
var body: some View {
|
||||
VStack {
|
||||
Image(systemName: "globe")
|
||||
.imageScale(.large)
|
||||
.foregroundStyle(.tint)
|
||||
Text("Hello, world!")
|
||||
}
|
||||
.padding()
|
||||
RecordingView()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#Preview {
|
||||
// MARK: - Previews
|
||||
|
||||
#Preview(
|
||||
"Content view"
|
||||
) {
|
||||
ContentView()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user