Now Playing: close from the top strip only, stems keep the art width, sliding preset chips, docked Duo pane stacks art on top, deck fits every stem, no dev banner, dev builds versioned 1.0.<build>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-11-18 14:30:58 -08:00
1 parent dc3e8a09b5
commit 8c06f17c05
4 files changed
+38 -80

No files matched your search

-28
View File
@@ -26,11 +26,9 @@ struct RootView: View {
}
.modifier(GlassMiniPlayerHost())
.background(p.bg.ignoresSafeArea())
.devBanner()
.onChange(of: s.tabLayout) { _, _ in ui.ensureValidTab() }
.fullScreenCover(isPresented: Binding(get: { ui.nowPlayingOpen }, set: { ui.nowPlayingOpen = $0 })) {
NowPlayingScreen()
.devBanner()
.overlayHost(ui.overlays, level: 1)
.environment(ui)
.environment(\.palette, p)
@@ -223,29 +221,3 @@ private struct DuoPane<Content: View>: View {
return c.first > 200 && c.second > 200 ? c : nil
}
}
/// Dev builds only: a strip over the app with the build number, so they're never mistaken for release.
private struct DevBanner: ViewModifier {
private static let label: String? = {
let info = Bundle.main.infoDictionary
guard info?["StemifyChannel"] as? String == "dev" else { return nil }
let v = info?["StemifyVersionLabel"] as? String ?? ""
let b = info?["CFBundleVersion"] as? String ?? ""
return "DEV BUILD \(b) · \(v)"
}()
func body(content: Content) -> some View {
if let label = Self.label {
content.safeAreaInset(edge: .top, spacing: 0) {
Text(label).font(.caption2.weight(.bold)).foregroundStyle(.black)
.frame(maxWidth: .infinity).frame(height: 16)
.background(Color.orange)
}
} else {
content
}
}
}
extension View {
func devBanner() -> some View { modifier(DevBanner()) }
}