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