From 7dddc2565651f1f43a25127164993138bdbed845 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 23 Nov 2026 09:33:39 -0800 Subject: [PATCH] iOS: folded Duo keeps portrait lock in background (no landscape flash on reopen while playing); build 53 Co-Authored-By: Claude Opus 5.5 --- ios/Stemify/UI/Nav.swift | 8 +++++++- ios/project.yml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ios/Stemify/UI/Nav.swift b/ios/Stemify/UI/Nav.swift index 635a3f2..b5bc2ed 100644 --- a/ios/Stemify/UI/Nav.swift +++ b/ios/Stemify/UI/Nav.swift @@ -150,7 +150,13 @@ final class Ui { } } - func backgrounded() { Orientation.lock(.allButUpsideDown) } + /// Folded stays locked upright: while audio plays the app lives on in the background and iOS + /// would turn the free window with the phone, so it came back sideways. Unfolding meanwhile is + /// still caught on return (upright unfolded marks the phone unfolded and turns it). + /// Unfolded frees rotation, so a phone folded meanwhile isn't held in landscape. + func backgrounded() { + if folded { Orientation.lock(.portrait) } else { Orientation.lock(.allButUpsideDown) } + } private func lockOrientation() { if split || unfolded { Orientation.lock(.landscape); return } diff --git a/ios/project.yml b/ios/project.yml index 65b4045..6f57171 100644 --- a/ios/project.yml +++ b/ios/project.yml @@ -9,7 +9,7 @@ settings: # iOS needs a plain number for the bundle version; the label is what the app and releases show. MARKETING_VERSION: "0.10.1" VERSION_LABEL: "0.10.1" - CURRENT_PROJECT_VERSION: "52" + CURRENT_PROJECT_VERSION: "53" # Dev builds override these (build-ipa.sh dev) so they install next to the release app. APP_ID: org.cdnutter.stemify APP_NAME: Stemify