Compare commits

..
Author SHA1 Message Date
rootandClaude Opus 5.5 4860db6f6c Duo wide Now Playing: art matches the controls' height
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:19:12 -08:00
root 4c1956d569 iOS source.json for ios-v0.10.1 2026-11-20 10:42:45 -08:00
rootandClaude Opus 5.5 ed0fd1d184 iOS: bigger art in wide panes, Duo Split View player sits lower; build 50
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 10:39:40 -08:00
root 55f8574eaa iOS source.json for ios-v0.10.1 2026-11-20 10:33:03 -08:00
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
root 4dfcfbf434 iOS source.json for ios-v0.10.1 2026-11-20 10:17:11 -08:00
rootandClaude Opus 5.5 56c92e8b93 iOS: free orientation in background, re-lock after resume settles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 10:14:59 -08:00
root 639b5368ff iOS source.json for ios-v0.10.1 2026-11-20 10:10:17 -08:00
rootandClaude Opus 5.5 cfaedd06cf iOS 0.10.1 (build 47)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 10:08:08 -08:00
rootandClaude Opus 5.5 8f3a10df2f iOS: more room between art and title on the folded screen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 10:00:51 -08:00
5 changed files with 63 additions and 16 deletions

No files matched your search

+12 -1
View File
@@ -126,6 +126,7 @@ final class Ui {
private var duo = UserDefaults.standard.bool(forKey: "duoSeen")
/// Folded iPhone Duo: the outer display, kept upright.
var folded: Bool { duo && !split && !unfolded }
var isDuo: Bool { duo }
/// Called with the window's side insets. Upright, only the folded Duo has a trailing one.
func sawInsets(trailing: CGFloat, upright: Bool) {
@@ -139,7 +140,17 @@ final class Ui {
/// Split (unfolded) goes landscape at once. Portrait waits a moment and checks again, so a
/// frame without a hinge reading mid-rotation can't throw an unfolded phone back upright.
/// Back in the foreground: the phone may have been folded or unfolded meanwhile.
func resumed() { lockOrientation() }
/// The split/unfolded flags are from before the app left, so locking on them at once can force
/// landscape on a phone folded meanwhile. Free the rotation while away and decide again once
/// the window has settled to the screen it came back on.
func resumed() {
Task { @MainActor in
try? await Task.sleep(for: .milliseconds(300))
self.lockOrientation()
}
}
func backgrounded() { Orientation.lock(.allButUpsideDown) }
private func lockOrientation() {
if split || unfolded { Orientation.lock(.landscape); return }
+22 -5
View File
@@ -19,9 +19,21 @@ struct RootView: View {
.onGeometryChange(for: CGFloat.self) { $0.safeAreaInsets.trailing } action: { ui.sawInsets(trailing: $0, upright: vSize == .regular) }
.background(p.bg.ignoresSafeArea())
.onChange(of: ui.tabs) { _, _ in ui.ensureValidTab() }
.onChange(of: phase) { _, ph in if ph == .active { ui.resumed() } }
.onChange(of: phase) { _, ph in
if ph == .active { ui.resumed() } else if ph == .background { ui.backgrounded() }
}
.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)
@@ -198,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 {
@@ -229,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.
+16 -7
View File
@@ -67,8 +67,12 @@ struct NowPlayingScreen: View {
/// Docked beside the hinge the pane is narrow, so the controls pack tighter. Full screen
/// (folded or any other iPhone) uses the roomy layout across the whole window.
private var tight: Bool { docked }
/// Full screen on the Duo (folded, or a Split View half), the controls run down into the home indicator strip.
private var runsLow: Bool { !docked && (folded || ui.isDuo) }
/// Size of the art panel in the stacked layout, so the controls can match the art's width.
@State private var artBox: CGSize = .zero
/// Height of the wide layout's controls column, so the Duo art can match it.
@State private var ctlH: CGFloat = 0
/// The screen's height, for the strip at the top that a drag down closes from.
@State private var screenH: CGFloat = 0
@Environment(\.verticalSizeClass) private var vSize
@@ -91,13 +95,18 @@ struct NowPlayingScreen: View {
if wide {
// The column never drops below what the transport row needs, so the buttons
// can't spill onto the art or under the Duo rail.
let col = tight ? min(max(geo.size.width * 0.46, 300), 420) : min(geo.size.width * 0.48, 440)
let col = tight ? min(max(geo.size.width * 0.46, 300), 420) : min(max(geo.size.width * 0.42, 300), 440)
HStack(spacing: 0) {
// On the Duo the art matches the controls' height, so it lines up with the title
// and the button row instead of floating in the middle of a tall pane.
let match = ui.isDuo && !docked && panel == .Art && ctlH > 0
panelView(track, header: false)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.frame(maxWidth: .infinity, maxHeight: match ? min(ctlH, geo.size.height) : .infinity)
.frame(maxHeight: .infinity)
.transition(.opacity.combined(with: .scale(scale: 0.96)))
controls(track, wide: true, width: col)
.frame(width: col)
.onGeometryChange(for: CGFloat.self) { $0.size.height } action: { ctlH = $0 }
.frame(maxHeight: .infinity)
}
} else {
@@ -126,12 +135,12 @@ struct NowPlayingScreen: View {
// Folded, the bottom inset is empty space too: run the controls down into it, and the art grows into the room.
// The room under the controls has to be inside this view: padding outside it would keep
// the view off the bottom edge, and then it can't run into the home indicator strip.
.padding(.bottom, folded && !docked ? 6 : 0)
.ignoresSafeArea(.container, edges: !docked && vSize == .regular ? (folded ? [.trailing, .bottom] : .trailing) : [])
.padding(.bottom, runsLow ? 6 : 0)
.ignoresSafeArea(.container, edges: !docked && vSize == .regular ? (runsLow ? [.trailing, .bottom] : .trailing) : [])
// Measured outside the line above, so it still sees the status column.
.onGeometryChange(for: Bool.self) { $0.safeAreaInsets.trailing > 20 } action: { folded = $0 && vSize == .regular }
.padding(.top, docked ? 4 : tight ? 14 : 20)
.padding(.bottom, folded && !docked ? 0 : tight ? 4 : 8)
.padding(.bottom, runsLow ? 0 : tight ? 4 : 8)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(c.bg.ignoresSafeArea())
.overlay(alignment: .top) {
@@ -156,7 +165,7 @@ struct NowPlayingScreen: View {
@ViewBuilder
private func panelView(_ track: Track, header: Bool) -> some View {
switch panel {
case .Art: ArtPanel(thumb: track.thumb, playing: g.playback.playWhenReady, inset: header || !tight ? artInset : 12,
case .Art: ArtPanel(thumb: track.thumb, playing: g.playback.playWhenReady, inset: header ? artInset : 12,
leading: folded && !docked && !ui.split && g.settings.foldedArtLeft).contentShape(Rectangle())
case .Mixer: VStack(spacing: 0) { if header { mini(track) }; MixerPanel(spread: folded) }
case .Queue: VStack(spacing: 0) { if header { mini(track) }; QueuePanel(close: { show(.Queue) }) }
@@ -190,7 +199,7 @@ struct NowPlayingScreen: View {
Spacer(minLength: 8)
EllipsisButton(items: ui.menu.track(track))
}
.padding(.top, tight || snug ? 8 : 14)
.padding(.top, snug && !docked ? 20 : tight ? 8 : ui.isDuo && !wide ? 30 : 14)
.transition(.opacity.combined(with: .move(edge: .top)))
}
ProgressVolumeBar(played: g.settings.albumTheme ? c.accent : c.label, unplayed: c.label3, centerLabel: badge(track))
+3 -3
View File
@@ -7,9 +7,9 @@ settings:
base:
SWIFT_VERSION: "5.0"
# iOS needs a plain number for the bundle version; the label is what the app and releases show.
MARKETING_VERSION: "0.10.0"
VERSION_LABEL: "0.10.0"
CURRENT_PROJECT_VERSION: "46"
MARKETING_VERSION: "0.10.1"
VERSION_LABEL: "0.10.1"
CURRENT_PROJECT_VERSION: "51"
# Dev builds override these (build-ipa.sh dev) so they install next to the release app.
APP_ID: org.cdnutter.stemify
APP_NAME: Stemify
+10
View File
@@ -15,6 +15,16 @@
"tintColor": "#FA2D48",
"category": "entertainment",
"versions": [
{
"version": "0.10.1",
"marketingVersion": "0.10.1",
"buildVersion": "50",
"date": "2026-11-20T10:42:45-08:00",
"localizedDescription": "iOS: bigger art in wide panes, Duo Split View player sits lower; build 50",
"downloadURL": "https://git.iamchrisama.com/cdnutter/stemify/releases/download/ios-v0.10.1/stemify-0.10.1.ipa",
"size": 3141097,
"minOSVersion": "17.0"
},
{
"version": "0.10.0",
"marketingVersion": "0.10.0",