iOS milestone 3 groundwork: SizzleSession bridge, app shell with tabs, slot-backed editors, screen snapshots

SizzleSession owns the song, engine (192-frame chunks, try-lock on the audio
thread), samples and audio output; AppModel/RootView give the four tabs;
DeviceModel now works on toolbox slots too; make screen-snapshots renders the
app's tabs on the Mac.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-16 09:15:28 +01:00
co-authored by Claude Opus 5.5
parent 7bc54e6466
commit 29650b88d7
26 changed files with 1211 additions and 47 deletions
+5 -7
View File
@@ -13,18 +13,16 @@ import UIKit
struct DeviceEditor: View {
@StateObject var model: DeviceModel
@State var page = 0
/// Render without a ScrollView (the Mac snapshot tool; ImageRenderer can't draw one).
static var snapshot = false
var body: some View {
let pages = Layouts.pages(for: model.au.toolboxType, allKeys: model.order)
let pages = Layouts.pages(for: model.toolboxType, allKeys: model.order)
VStack(alignment: .leading, spacing: 8) {
HStack {
Text(model.au.displayName.uppercased()).font(Theme.mono(15)).foregroundColor(Theme.accent)
Text(model.displayName.uppercased()).font(Theme.mono(15)).foregroundColor(Theme.accent)
Spacer()
if let presets = model.au.factoryPresets, !presets.isEmpty {
if !model.presetNames.isEmpty {
Menu {
ForEach(presets, id: \.number) { p in Button(p.name) { model.applyPreset(p) } }
ForEach(model.presetNames, id: \.self) { name in Button(name) { model.applyPreset(named: name) } }
} label: {
Text("PRESET: \(model.presetName ?? "—") ▾").font(Theme.mono(12)).foregroundColor(Theme.accent)
}
@@ -51,7 +49,7 @@ struct DeviceEditor: View {
CardView(panel: panel, model: model)
}
}
if DeviceEditor.snapshot { cards; Spacer(minLength: 0) } else { ScrollView { cards } }
SnapScroll { cards }
}
.padding(10)
.background(Theme.background)