Compare commits

..
Author SHA1 Message Date
rootandClaude Opus 5.5 07b5636bac iOS: full-screen Now Playing watches the hinge so unfolding goes landscape; build 49
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 10:30:00 -08:00
root 88d3aa48e7 iOS source.json for ios-v0.10.1 2026-11-20 10:23:12 -08:00
rootandClaude Opus 5.5 d6da47db9d iOS: only the on-screen Duo pane reports split/unfolded; build 48
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 10:20:09 -08:00
3 changed files with 24 additions and 9 deletions

No files matched your search

+19 -4
View File
@@ -24,6 +24,16 @@ struct RootView: View {
}
.fullScreenCover(isPresented: Binding(get: { ui.nowPlayingOpen }, set: { ui.nowPlayingOpen = $0 })) {
NowPlayingScreen()
// The panes underneath stop reporting while this covers them, so watch for the
// hinge here too: unfolding hands over to the split (docked) layout.
.background(GeometryReader { geo in
let c = DuoPane<EmptyView>.cut(geo)
Color.clear.onChange(of: c == nil ? 0 : c!.vertical ? 2 : 1, initial: true) { _, k in
guard k > 0 else { return }
ui.setUnfolded(true)
ui.setSplit(k == 2)
}
})
.overlayHost(ui.overlays, level: 1)
.environment(ui)
.environment(\.palette, p)
@@ -200,6 +210,7 @@ private struct DuoPane<Content: View>: View {
@Environment(Ui.self) private var ui
@AppStorage("duoSwap") private var swap = false
@Environment(\.palette) private var p
@State private var shown = false
private var g: AppGraph { .shared }
var body: some View {
@@ -231,15 +242,19 @@ private struct DuoPane<Content: View>: View {
// The hinge gap shows whatever is behind; paint it so the two sides read as one.
.background(p.bg.ignoresSafeArea())
.animation(.spring(duration: 0.4, bounce: 0.1), value: flip)
.onChange(of: hinge != nil, initial: true) { _, on in ui.setUnfolded(on) }
.onChange(of: cut != nil, initial: true) { _, on in ui.setSplit(on) }
// Every tab has its own pane and TabView keeps hidden ones alive, so only the one on
// screen reports; a hidden one's stale size used to turn split off under the visible one.
.onChange(of: hinge != nil) { _, on in if shown { ui.setUnfolded(on) } }
.onChange(of: cut != nil) { _, on in if shown { ui.setSplit(on) } }
.onAppear { shown = true; ui.setUnfolded(hinge != nil); ui.setSplit(cut != nil) }
.onDisappear { shown = false }
}
}
/// Where the hinge cuts the view: sizes of the two sides and the gap between them.
private struct Cut { var vertical: Bool; var first: CGFloat; var gap: CGFloat; var second: CGFloat }
fileprivate struct Cut { var vertical: Bool; var first: CGFloat; var gap: CGFloat; var second: CGFloat }
private static func cut(_ geo: GeometryProxy) -> Cut? {
fileprivate static func cut(_ geo: GeometryProxy) -> Cut? {
let size = geo.size
var c: Cut?
// The hinge reports inactive while the phone lies flat, so ask for inactive regions too.
+1 -1
View File
@@ -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: "47"
CURRENT_PROJECT_VERSION: "49"
# Dev builds override these (build-ipa.sh dev) so they install next to the release app.
APP_ID: org.cdnutter.stemify
APP_NAME: Stemify
+4 -4
View File
@@ -18,11 +18,11 @@
{
"version": "0.10.1",
"marketingVersion": "0.10.1",
"buildVersion": "47",
"date": "2026-11-20T10:17:10-08:00",
"localizedDescription": "iOS: free orientation in background, re-lock after resume settles",
"buildVersion": "48",
"date": "2026-11-20T10:23:12-08:00",
"localizedDescription": "iOS: only the on-screen Duo pane reports split/unfolded; build 48",
"downloadURL": "https://git.iamchrisama.com/cdnutter/stemify/releases/download/ios-v0.10.1/stemify-0.10.1.ipa",
"size": 3136176,
"size": 3139470,
"minOSVersion": "17.0"
},
{