diff --git a/Demo/ShoeGazeBuilderiOS/ShoeGazeBuilderiOSApp.swift b/Demo/ShoeGazeBuilderiOS/ShoeGazeBuilderiOSApp.swift index db6a477..3c5315f 100644 --- a/Demo/ShoeGazeBuilderiOS/ShoeGazeBuilderiOSApp.swift +++ b/Demo/ShoeGazeBuilderiOS/ShoeGazeBuilderiOSApp.swift @@ -13,8 +13,9 @@ import LyrebirdShoeGazeUI /// lifetime of the app. The audio engine is **not** started automatically — the user presses /// Start in ``ShoeGazeBuilderView``. The engine is stopped when the view disappears. /// -/// ``ShoeGazeBuilderView`` manages its own scroll regions (palette + builder), so it is hosted -/// directly rather than wrapped in an outer `ScrollView`. +/// ``ShoeGazeBuilderView`` draws its own header/title and manages its own scroll regions (palette +/// + board canvas), so it is hosted directly — no `NavigationStack`, title, or outer `ScrollView`. +/// A fill frame keeps it pinned to the full window so portrait isn't vertically centered. @main struct ShoeGazeBuilderiOSApp: App { @@ -23,20 +24,17 @@ struct ShoeGazeBuilderiOSApp: App { var body: some Scene { WindowGroup { - NavigationStack { - ShoeGazeBuilderView( - shoeGaze: model.shoeGaze, - library: model.library, - hardwareSampleRate: { model.hardwareSampleRate }, - onEnableLiveInput: { model.enableLiveInput() }, - midi: model.midi - ) - .navigationTitle("ShoeGaze Builder") - .navigationBarTitleDisplayMode(.inline) - .task { await model.startLibrary() } - } - .onDisappear { model.stop() } - .onOpenURL { url in model.importDocument(at: url) } + ShoeGazeBuilderView( + shoeGaze: model.shoeGaze, + library: model.library, + hardwareSampleRate: { model.hardwareSampleRate }, + onEnableLiveInput: { model.enableLiveInput() }, + midi: model.midi + ) + .frame(maxWidth: .infinity, maxHeight: .infinity) + .task { await model.startLibrary() } + .onDisappear { model.stop() } + .onOpenURL { url in model.importDocument(at: url) } } .onChange(of: scenePhase) { _, phase in // Persist the rig whenever the app leaves the foreground.