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:
co-authored by
Claude Opus 5.5
parent
7bc54e6466
commit
29650b88d7
@@ -3,6 +3,21 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
/// Rendering for the Mac snapshot tools (make editor-snapshots / screen-snapshots):
|
||||
/// ImageRenderer can't draw scroll views, so content scrolls only when not snapshotting.
|
||||
enum Snapshot {
|
||||
static var active = false
|
||||
}
|
||||
|
||||
/// A vertical ScrollView, or a plain stack in snapshot mode.
|
||||
struct SnapScroll<Content: View>: View {
|
||||
@ViewBuilder let content: () -> Content
|
||||
var body: some View {
|
||||
if Snapshot.active { VStack(spacing: 0) { content(); Spacer(minLength: 0) } }
|
||||
else { ScrollView { content() } }
|
||||
}
|
||||
}
|
||||
|
||||
/// Sizzle's dark retro palette (Android's default theme) and the card tones.
|
||||
enum Theme {
|
||||
static let background = Color(red: 0.07, green: 0.08, blue: 0.09)
|
||||
|
||||
Reference in New Issue
Block a user