From 634dd0548628474dafad7287b319999415cc00a9 Mon Sep 17 00:00:00 2001 From: Reactorcoremeltdown Date: Tue, 17 Nov 2026 20:30:06 +0100 Subject: [PATCH] 0.41.1 (77): iOS controls redraw when the song changes The Mix record bar, the Sampler waveform page, the LFO target picker and the audition keyboards read the session but had no changing inputs, so SwiftUI skipped redrawing them until something else (rotation) forced it. They now observe MixSongWatch. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 ++++ ios/CHANGELOG.md | 8 ++++++++ ios/app/Host/Screens/Mix/MixScreen.swift | 3 +++ ios/app/Host/Screens/Toolbox/AuditionKeyboards.swift | 6 ++++++ ios/app/Host/Screens/Toolbox/SamplerPanels.swift | 3 +++ ios/app/Host/Screens/Toolbox/SlotEditor.swift | 3 +++ versions.properties | 4 ++-- 7 files changed, 29 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 984a9c0..44a567f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ version in `versions.properties`; versions before 0.28.0 are described in the gi log (one commit per version). Since 0.37.0 Android and iOS share one version and one feature set; the iOS side of each version is in `ios/CHANGELOG.md`. +## 0.41.1 (versionCode 77) + +- No Android change: an iOS redraw fix (see `ios/CHANGELOG.md`). + ## 0.41.0 (versionCode 76) - **Keep screen on:** a Settings › Interface toggle that stops the screen from diff --git a/ios/CHANGELOG.md b/ios/CHANGELOG.md index bd08ddc..73ffbe7 100644 --- a/ios/CHANGELOG.md +++ b/ios/CHANGELOG.md @@ -5,6 +5,14 @@ Sizzle for iOS/iPadOS (`cc.tiredsysadmin.ios.sizzle`). One entry per version in is shared with Android, continuing Android's numbering, and both apps ship the same features; the Android side of each version is in `../CHANGELOG.md`. +## 0.41.1 (build 77) + +- Fix: some controls only showed their new state after something else redrew + the screen (rotating the iPad): the Mix tab's ● ARM / TAIL / SHARE bar, the + Sampler's slice markers, the LFO's target and the audition keyboards. They now + redraw as soon as the song changes. (SwiftUI skipped them because none of their + own inputs changed.) + ## 0.41.0 (build 76) - Keep screen on: a Setup › Interface toggle that turns the idle timer off while diff --git a/ios/app/Host/Screens/Mix/MixScreen.swift b/ios/app/Host/Screens/Mix/MixScreen.swift index 24e6b39..04a040b 100644 --- a/ios/app/Host/Screens/Mix/MixScreen.swift +++ b/ios/app/Host/Screens/Mix/MixScreen.swift @@ -50,6 +50,9 @@ private struct MixBody: View { /// external MIDI clock Start), the FX tail after the stop, and the last take. Takes /// are saved in Sizzle's Recordings folder (Files app); SHARE sends the last one. private struct RecordToolbar: View { + /// Redraw when the song changes: these inputs alone never change, so SwiftUI + /// would otherwise keep showing the old state. + @ObservedObject private var watch = MixSongWatch.shared let session: SizzleSession var body: some View { diff --git a/ios/app/Host/Screens/Toolbox/AuditionKeyboards.swift b/ios/app/Host/Screens/Toolbox/AuditionKeyboards.swift index 462de11..06ec288 100644 --- a/ios/app/Host/Screens/Toolbox/AuditionKeyboards.swift +++ b/ios/app/Host/Screens/Toolbox/AuditionKeyboards.swift @@ -11,6 +11,9 @@ import UIKit /// mix bus on the keyboard's MIDI channel; out-of-scale keys are dimmed, unless the /// channel reaches a Sampler (every pad must stay playable). struct ToolboxKeyboard: View { + /// Redraw when the song changes: these inputs alone never change, so SwiftUI + /// would otherwise keep showing the old state. + @ObservedObject private var watch = MixSongWatch.shared let app: AppModel let channel: Int let octave: Int @@ -66,6 +69,9 @@ struct ToolboxKeyboard: View { /// SlotAuditionKeyboard: an OCT stepper over two octaves that play one toolbox slot /// directly (the instrument editors pin it under their controls). struct SlotAuditionKeyboard: View { + /// Redraw when the song changes: these inputs alone never change, so SwiftUI + /// would otherwise keep showing the old state. + @ObservedObject private var watch = MixSongWatch.shared let slot: Int @State private var octave = 3 diff --git a/ios/app/Host/Screens/Toolbox/SamplerPanels.swift b/ios/app/Host/Screens/Toolbox/SamplerPanels.swift index 96620df..cb9182f 100644 --- a/ios/app/Host/Screens/Toolbox/SamplerPanels.swift +++ b/ios/app/Host/Screens/Toolbox/SamplerPanels.swift @@ -88,6 +88,9 @@ struct SamplerDetail: View { /// The selected pad's waveform; drag near a marker to move the slice start / end. private struct WaveformPage: View { + /// Redraw when the song changes: these inputs alone never change, so SwiftUI + /// would otherwise keep showing the old state. + @ObservedObject private var watch = MixSongWatch.shared let slot: Int let pad: Int @State private var dragging = -1 diff --git a/ios/app/Host/Screens/Toolbox/SlotEditor.swift b/ios/app/Host/Screens/Toolbox/SlotEditor.swift index 5460421..2d782b5 100644 --- a/ios/app/Host/Screens/Toolbox/SlotEditor.swift +++ b/ios/app/Host/Screens/Toolbox/SlotEditor.swift @@ -315,6 +315,9 @@ private struct PresetBar: View { /// LfoTargetPicker: every numeric parameter of every other filled slot; choosing /// one makes the LFO drive it (the parameter's value now is the centre). private struct LfoTargetPicker: View { + /// Redraw when the song changes: these inputs alone never change, so SwiftUI + /// would otherwise keep showing the old state. + @ObservedObject private var watch = MixSongWatch.shared let lfo: Int private struct Target: Hashable { diff --git a/versions.properties b/versions.properties index 1c13e6d..dc8addd 100644 --- a/versions.properties +++ b/versions.properties @@ -12,8 +12,8 @@ # or polish. versionCode is monotonic and bumps by 1 on every release, # because F-Droid and the Android package manager order installs by it alone. -versionName = 0.41.0 -versionCode = 76 +versionName = 0.41.1 +versionCode = 77 # Namespace for every platform: cc.tiredsysadmin..sizzle. Android: # cc.tiredsysadmin.android.sizzle (app/), iOS/iPadOS: cc.tiredsysadmin.ios.sizzle