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:
co-authored by
Claude Opus 5.5
parent
29650b88d7
commit
962cfd1e2b
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user