From 7c1281ec75a917b4be64a6355650b96fda6d45f6 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Fri, 3 Jul 2026 20:05:11 +0200 Subject: [PATCH] Integrated the RecordingView feature into the ContentView view in the Sample app target. --- Apps/Attendi/AttendiApp.swift | 6 ++++++ Apps/Attendi/ContentView.swift | 23 +++++++++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/Apps/Attendi/AttendiApp.swift b/Apps/Attendi/AttendiApp.swift index 8fa13aa..071ef35 100644 --- a/Apps/Attendi/AttendiApp.swift +++ b/Apps/Attendi/AttendiApp.swift @@ -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() } } + } diff --git a/Apps/Attendi/ContentView.swift b/Apps/Attendi/ContentView.swift index b000a7e..78d26f4 100644 --- a/Apps/Attendi/ContentView.swift +++ b/Apps/Attendi/ContentView.swift @@ -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() }