iOS 0.4.0: Sizzle's Tracker, Mix, Toolbox and Setup tabs on the C++ engine

Ported from the Android tabs by parallel agents (each screen with its own
SizzleSession category); slot editors use the card editor with a preset
library; songs load/save in the Android project format.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-16 09:32:30 +01:00
co-authored by Claude Opus 5.5
parent 29650b88d7
commit 962cfd1e2b
35 changed files with 4088 additions and 66 deletions
+13 -8
View File
@@ -13,18 +13,23 @@ import UIKit
struct DeviceEditor: View {
@StateObject var model: DeviceModel
@State var page = 0
/// The device name and preset menu row; off where the host draws its own
/// (the app's slot editor has a preset bar of its own).
var showsHeader = true
var body: some View {
let pages = Layouts.pages(for: model.toolboxType, allKeys: model.order)
VStack(alignment: .leading, spacing: 8) {
HStack {
Text(model.displayName.uppercased()).font(Theme.mono(15)).foregroundColor(Theme.accent)
Spacer()
if !model.presetNames.isEmpty {
Menu {
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)
if showsHeader {
HStack {
Text(model.displayName.uppercased()).font(Theme.mono(15)).foregroundColor(Theme.accent)
Spacer()
if !model.presetNames.isEmpty {
Menu {
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)
}
}
}
}