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