Compare commits

..
Author SHA1 Message Date
rootandClaude Opus 5.5 09bf1b2835 iOS Duo: same vertical tab bar on every tab, docked Now Playing keeps its size, folded Now Playing fills the window (dev 28)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:29:03 -08:00
rootandClaude Opus 5.5 09d8caface iOS publish.sh: send the tag, not the title, as tag_name
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:03:29 -08:00
rootandClaude Opus 5.5 0fbd7c848f iOS: version 0.9.0, dev title "Dev Build N", dev short version major.minor.build
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:03:09 -08:00
rootandClaude Opus 5.5 4ddcfd7ff5 Duo deck: Now Playing tab, full-pane Stems / Lyrics / Playing Next / EQ pages
Unfolded with something playing, the tab bar leads with a Now Playing item that shows the
deck beside docked Now Playing. Each deck page gets the whole pane; the queue moved to its
own page and a vertical graphic EQ page was added. Dev build 27.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:00:00 -08:00
rootandClaude Opus 5.5 190b793043 publish.sh: readable release titles (Stemify iOS <label>, Dev Build <n>)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:55:21 -08:00
rootandClaude Opus 5.5 8c06f17c05 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>
2026-11-18 14:30:58 -08:00
rootandClaude Opus 5.5 dc3e8a09b5 publish.sh: dev uploads go to ?source=dev (developer 404s)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:12:35 -08:00
7 changed files with 210 additions and 150 deletions

No files matched your search

+30 -10
View File
@@ -36,6 +36,19 @@ enum Tab: String, CaseIterable, Hashable {
} }
} }
/// The pages of the deck beside docked Now Playing on an unfolded iPhone Duo.
enum DeckPage: String, CaseIterable, Hashable {
case Stems, Lyrics, Queue, Eq
var title: String {
switch self {
case .Stems: "Stems"
case .Lyrics: "Lyrics"
case .Queue: "Playing Next"
case .Eq: "EQ"
}
}
}
enum Route: Hashable { enum Route: Hashable {
case Artists, Albums, Songs, RecentlyAdded, Playlists, Genres, Downloads, DownloadQueue, TabBar, WebRadio case Artists, Albums, Songs, RecentlyAdded, Playlists, Genres, Downloads, DownloadQueue, TabBar, WebRadio
case Eq, EqFilters(profileId: String), EqFilterPage(profileId: String, filterId: String) case Eq, EqFilters(profileId: String), EqFilterPage(profileId: String, filterId: String)
@@ -54,10 +67,10 @@ final class Ui {
} }
/// True while an unfolded iPhone Duo shows Now Playing docked beside the library. /// True while an unfolded iPhone Duo shows Now Playing docked beside the library.
private(set) var split = false private(set) var split = false
/// Split only: the side opposite Now Playing shows the stems and queue (true) or the selected tab. /// Split only: the Now Playing tab (the deck) is selected instead of `tab`.
var deck = true var deck = true
/// Split only: the deck shows the lyrics (karaoke) instead of the stems and queue. /// Split only: which of the deck's pages is showing.
var deckLyrics = false var deckPage: DeckPage = .Stems
let overlays: Overlays let overlays: Overlays
init(overlays: Overlays) { self.overlays = overlays } init(overlays: Overlays) { self.overlays = overlays }
@@ -72,12 +85,21 @@ final class Ui {
/// Tapping the selected tab again pops it to its root. /// Tapping the selected tab again pops it to its root.
func selectTab(_ t: Tab) { func selectTab(_ t: Tab) {
if split && deck { deck = false; tab = t; return } if showsDeck { deck = false; tab = t; return }
if t == tab { paths[t] = [] } else { tab = t } if t == tab { paths[t] = [] } else { tab = t }
} }
/// The tabs currently in the bar, in order. /// Split with something playing, the bar leads with a Now Playing item that opens the deck.
var tabs: [Tab] { Tab.layout(AppGraph.shared.settings.tabLayout) } var hasDeckTab: Bool { split && AppGraph.shared.playback.current != nil }
var showsDeck: Bool { hasDeckTab && deck }
/// The tabs currently in the bar, in order. The Now Playing item takes one of the five places
/// (iOS folds a sixth into "More"), so the last one before Settings steps aside for it.
var tabs: [Tab] {
var t = Tab.layout(AppGraph.shared.settings.tabLayout)
if hasDeckTab && t.count >= Tab.maxVisible, let i = t.lastIndex(where: { $0 != .Settings }) { t.remove(at: i) }
return t
}
/// Where library pages open: Library if it's in the bar, else the first tab that is. /// Where library pages open: Library if it's in the bar, else the first tab that is.
private var home: Tab { tabs.contains(.Library) ? .Library : (tabs.first ?? .Settings) } private var home: Tab { tabs.contains(.Library) ? .Library : (tabs.first ?? .Settings) }
@@ -96,18 +118,16 @@ final class Ui {
func openNowPlaying() { if !split { nowPlayingOpen = true } } func openNowPlaying() { if !split { nowPlayingOpen = true } }
/// Split only: brings the stems and queue (or the lyrics) back beside Now Playing. /// Split only: brings the stems and queue (or the lyrics) back beside Now Playing.
func showDeck(lyrics: Bool = false) { deck = true; deckLyrics = lyrics } func showDeck(_ page: DeckPage? = nil) { deck = true; if let page { deckPage = page } }
func setSplit(_ on: Bool) { func setSplit(_ on: Bool) {
guard on != split else { return } guard on != split else { return }
split = on split = on
if on { if on {
nowPlayingOpen = false nowPlayingOpen = false
// Only an iPhone Duo ever splits, so from here on folded Now Playing uses its tighter layout.
UserDefaults.standard.set(true, forKey: "duoSeen")
} }
// Karaoke left on shows its lyrics in the deck. // Karaoke left on shows its lyrics in the deck.
deckLyrics = on && AppGraph.shared.playback.karaoke if on && AppGraph.shared.playback.karaoke { deckPage = .Lyrics } else if deckPage == .Lyrics { deckPage = .Stems }
} }
/// Switches to the Library tab and pushes [r] there. /// Switches to the Library tab and pushes [r] there.
+15 -52
View File
@@ -11,8 +11,16 @@ struct RootView: View {
var body: some View { var body: some View {
let s = g.settings let s = g.settings
let p = Palette.of(s.theme, s.accent) let p = Palette.of(s.theme, s.accent)
TabView(selection: Binding(get: { ui.tab }, set: { ui.selectTab($0) })) { TabView(selection: Binding(get: { ui.showsDeck ? BarItem.deck : .tab(ui.tab) },
ForEach(Tab.layout(s.tabLayout), id: \.self) { t in set: { if case .tab(let t) = $0 { ui.selectTab(t) } else { ui.showDeck() } })) {
// Unfolded with something playing, Now Playing leads the bar: the deck (stems, lyrics,
// queue, EQ) on this side of the hinge, the player docked on the other.
if ui.hasDeckTab {
DuoPane { NowPlayingDeck() }
.tabItem { Label("Now Playing", systemImage: "waveform") }
.tag(BarItem.deck)
}
ForEach(ui.tabs, id: \.self) { t in
DuoPane { DuoPane {
NavigationStack(path: ui.path(t)) { NavigationStack(path: ui.path(t)) {
root(t).miniPlayerRoom() root(t).miniPlayerRoom()
@@ -21,16 +29,14 @@ struct RootView: View {
.modifier(FloatingMiniPlayer()) .modifier(FloatingMiniPlayer())
} }
.tabItem { Label(t.rawValue, systemImage: t.icon) } .tabItem { Label(t.rawValue, systemImage: t.icon) }
.tag(t) .tag(BarItem.tab(t))
} }
} }
.modifier(GlassMiniPlayerHost()) .modifier(GlassMiniPlayerHost())
.background(p.bg.ignoresSafeArea()) .background(p.bg.ignoresSafeArea())
.devBanner() .onChange(of: ui.tabs) { _, _ in ui.ensureValidTab() }
.onChange(of: s.tabLayout) { _, _ in ui.ensureValidTab() }
.fullScreenCover(isPresented: Binding(get: { ui.nowPlayingOpen }, set: { ui.nowPlayingOpen = $0 })) { .fullScreenCover(isPresented: Binding(get: { ui.nowPlayingOpen }, set: { ui.nowPlayingOpen = $0 })) {
NowPlayingScreen() NowPlayingScreen()
.devBanner()
.overlayHost(ui.overlays, level: 1) .overlayHost(ui.overlays, level: 1)
.environment(ui) .environment(ui)
.environment(\.palette, p) .environment(\.palette, p)
@@ -47,6 +53,8 @@ struct RootView: View {
.tint(p.accent) .tint(p.accent)
} }
private enum BarItem: Hashable { case deck, tab(Tab) }
@ViewBuilder private func root(_ t: Tab) -> some View { @ViewBuilder private func root(_ t: Tab) -> some View {
switch t { switch t {
case .Library: LibraryHome() case .Library: LibraryHome()
@@ -136,20 +144,6 @@ private struct MiniPlayerRoom: ViewModifier {
content.safeAreaInset(edge: .bottom, spacing: 0) { content.safeAreaInset(edge: .bottom, spacing: 0) {
if !glassAccessory && !ui.split && g.playback.current != nil { Color.clear.frame(height: 66) } if !glassAccessory && !ui.split && g.playback.current != nil { Color.clear.frame(height: 66) }
} }
.modifier(PaneToolbar())
}
}
/// Split, each pane is phone-sized, so its nav bar stays across the top instead of moving into
/// the Duo's vertical bar (the tab bar still goes there).
private struct PaneToolbar: ViewModifier {
@Environment(Ui.self) private var ui
func body(content: Content) -> some View {
if #available(iOS 27.1, *) {
content.toolbarVerticalBehavior(ui.split ? .disabled : .automatic)
} else {
content
}
} }
} }
@@ -158,7 +152,7 @@ private extension View {
} }
/// One tab's content, split at the iPhone Duo's hinge (the system's division region): the tab /// One tab's content, split at the iPhone Duo's hinge (the system's division region): the tab
/// (with the deck over it while it's showing) on one side, docked Now Playing on the other, left /// (or, for the Now Playing item, the deck) on one side, docked Now Playing on the other, left
/// and right trading places with the deck's swap button. It measures inside the tab's safe area, /// and right trading places with the deck's swap button. It measures inside the tab's safe area,
/// so the system's tab bar is never covered. Anywhere without a hinge it's just the tab, and the /// so the system's tab bar is never covered. Anywhere without a hinge it's just the tab, and the
/// tab stays put in the view tree so its scroll state survives folding, unfolding and swapping. /// tab stays put in the view tree so its scroll state survives folding, unfolding and swapping.
@@ -172,13 +166,9 @@ private struct DuoPane<Content: View>: View {
GeometryReader { geo in GeometryReader { geo in
let cut = Self.cut(geo) let cut = Self.cut(geo)
let flip = swap && cut?.vertical == true let flip = swap && cut?.vertical == true
let deck = cut != nil && ui.deck && g.playback.current != nil
let layout = cut?.vertical == false ? AnyLayout(VStackLayout(spacing: cut?.gap ?? 0)) : AnyLayout(HStackLayout(spacing: cut?.gap ?? 0)) let layout = cut?.vertical == false ? AnyLayout(VStackLayout(spacing: cut?.gap ?? 0)) : AnyLayout(HStackLayout(spacing: cut?.gap ?? 0))
layout { layout {
ZStack {
content content
if deck { NowPlayingDeck().transition(.opacity) }
}
.environment(\.layoutDirection, .leftToRight) .environment(\.layoutDirection, .leftToRight)
.frame(width: cut.map { $0.vertical ? (flip ? $0.second : $0.first) : geo.size.width } ?? geo.size.width, .frame(width: cut.map { $0.vertical ? (flip ? $0.second : $0.first) : geo.size.width } ?? geo.size.width,
height: cut.map { $0.vertical ? geo.size.height : $0.first } ?? geo.size.height) height: cut.map { $0.vertical ? geo.size.height : $0.first } ?? geo.size.height)
@@ -193,7 +183,6 @@ private struct DuoPane<Content: View>: View {
.environment(\.layoutDirection, flip ? .rightToLeft : .leftToRight) .environment(\.layoutDirection, flip ? .rightToLeft : .leftToRight)
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading) .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
.animation(.spring(duration: 0.4, bounce: 0.1), value: flip) .animation(.spring(duration: 0.4, bounce: 0.1), value: flip)
.animation(.easeInOut(duration: 0.2), value: deck)
.onChange(of: cut != nil, initial: true) { _, on in ui.setSplit(on) } .onChange(of: cut != nil, initial: true) { _, on in ui.setSplit(on) }
} }
} }
@@ -223,29 +212,3 @@ private struct DuoPane<Content: View>: View {
return c.first > 200 && c.second > 200 ? c : nil 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()) }
}
+80
View File
@@ -202,6 +202,86 @@ struct VerticalBandSlider: View {
} }
} }
// ---- deck EQ (unfolded iPhone Duo) ---------------------------------------------------------
/// The graphic EQ as a deck page: tall vertical bands that use the pane's height, with the
/// on/off switch, profile and presets above them. Filters and devices stay in Settings.
struct DeckEqPanel: View {
@Environment(Ui.self) private var ui
@Environment(\.palette) private var p
private var g: AppGraph { .shared }
var body: some View {
let eq = g.eq
let state = eq.state
VStack(spacing: 14) {
HStack(spacing: 10) {
Toggle("Equalizer", isOn: Binding(get: { state.enabled }, set: { eq.setEnabled($0) }))
.labelsHidden().tint(Color(hex: 0x34C759))
if let pr = eq.active {
Menu {
Section("Profile") {
ForEach(state.profiles, id: \.id) { x in
Button { eq.select(x.id) } label: {
if x.id == pr.id { Label(x.name, systemImage: "checkmark") } else { Text(x.name) }
}
}
}
Section("Load Preset") {
ForEach(EQ_PRESETS, id: \.0) { name, gains in Button(name) { eq.setGains(pr.id, gains) } }
}
} label: {
HStack(spacing: 4) {
Text(pr.name).lineLimit(1)
Image(systemName: "chevron.up.chevron.down").font(.caption.weight(.semibold))
}
.font(.subheadline.weight(.semibold)).foregroundStyle(p.label)
.padding(.horizontal, 12).frame(height: 32)
.background(p.fill, in: Capsule())
}
}
Spacer(minLength: 0)
Button { ui.showInSettings(.Eq) } label: {
Text("More").font(.subheadline.weight(.semibold)).foregroundStyle(p.label2)
.padding(.horizontal, 12).frame(height: 32).background(p.fill, in: Capsule())
}
.buttonStyle(PressFade())
}
if let pr = eq.active {
let preamp = effectivePreamp(pr)
EqCurve(chain: pr.chain, preampDb: preamp, enabled: state.enabled, range: EQ_MAX_DB + 3, bandMarkers: true)
.frame(height: 72)
HStack(spacing: 0) {
ForEach(EQ_BANDS.indices, id: \.self) { i in
let v = pr.gains[i]
VStack(spacing: 6) {
Text(db(v)).font(.caption2.monospacedDigit()).foregroundStyle(abs(v) > 0.05 ? p.accent : p.label2)
.lineLimit(1).fixedSize()
VerticalBandSlider(value: v / EQ_MAX_DB) { eq.setGain(pr.id, band: i, db: round1($0 * EQ_MAX_DB)) }
.frame(maxHeight: .infinity)
Text(EQ_LABELS[i]).font(.caption2).foregroundStyle(p.label2)
}
.frame(maxWidth: .infinity)
}
}
.frame(maxHeight: .infinity)
.opacity(state.enabled ? 1 : 0.5)
HStack {
Text("Preamp").foregroundStyle(p.label2)
Spacer()
Text(abs(preamp) < 0.05 ? "off" : "\(db(preamp)) dB").monospacedDigit().foregroundStyle(p.label2)
}
.font(.subheadline)
} else {
Text("No EQ profile yet. Make one in Settings.").font(.subheadline).foregroundStyle(p.label2)
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
.padding(.horizontal, 24).padding(.top, 8).padding(.bottom, 12)
.onAppear { eq.refreshRoute() }
}
}
// ---- main EQ screen ------------------------------------------------------------------------- // ---- main EQ screen -------------------------------------------------------------------------
struct EqScreen: View { struct EqScreen: View {
+67 -76
View File
@@ -108,12 +108,13 @@ struct NowPlayingScreen: View {
@State private var tint: Color? @State private var tint: Color?
/// How far the screen is being dragged down to close it. /// How far the screen is being dragged down to close it.
@State private var drop: CGFloat = 0 @State private var drop: CGFloat = 0
/// Set once the phone has unfolded, so it's an iPhone Duo: its screens are shorter for their /// Docked beside the hinge the pane is narrow, so the controls pack tighter. Full screen
/// width than a regular iPhone's, so the controls pack tighter and the art gets the room. /// (folded or any other iPhone) uses the roomy layout across the whole window.
@AppStorage("duoSeen") private var duoSeen = false private var tight: Bool { docked }
private var tight: Bool { docked || duoSeen }
/// Size of the art panel in the stacked layout, so the controls can match the art's width. /// Size of the art panel in the stacked layout, so the controls can match the art's width.
@State private var artBox: CGSize = .zero @State private var artBox: CGSize = .zero
/// The screen's height, for the strip at the top that a drag down closes from.
@State private var screenH: CGFloat = 0
private var artInset: CGFloat { tight ? 18 : 28 } private var artInset: CGFloat { tight ? 18 : 28 }
private var hPad: CGFloat { tight ? 20 : 28 } private var hPad: CGFloat { tight ? 20 : 28 }
private var g: AppGraph { .shared } private var g: AppGraph { .shared }
@@ -125,7 +126,8 @@ struct NowPlayingScreen: View {
// Wide when there's no room to stack art over controls: landscape, or iPhone Duo's // Wide when there's no room to stack art over controls: landscape, or iPhone Duo's
// outer display. Tall layouts (including the unfolded Duo) cap the controls' width. // outer display. Tall layouts (including the unfolded Duo) cap the controls' width.
GeometryReader { geo in GeometryReader { geo in
let wide = geo.size.width > geo.size.height * 0.9 // Docked beside the hinge, the pane is phone-shaped: art stays on top unless it's truly wide.
let wide = geo.size.width > geo.size.height * (docked ? 1.2 : 0.9)
if let track { if let track {
if wide { if wide {
// The column never drops below what the transport row needs, so the buttons // The column never drops below what the transport row needs, so the buttons
@@ -143,11 +145,12 @@ struct NowPlayingScreen: View {
let cap: CGFloat = tight ? 520 : 560 let cap: CGFloat = tight ? 520 : 560
// Controls line up with the art's edges instead of running wider than it. // Controls line up with the art's edges instead of running wider than it.
let art = min(artBox.width - 2 * artInset, artBox.height - 16) let art = min(artBox.width - 2 * artInset, artBox.height - 16)
let w = panel == .Art && art > 0 ? min(cap, max(300, art + 2 * hPad)) : cap // Every panel keeps the art screen's width, so switching to the stems doesn't widen it.
let w = !docked ? geo.size.width : art > 0 ? min(cap, max(300, art + 2 * hPad)) : cap
VStack(spacing: 0) { VStack(spacing: 0) {
panelView(track, header: true) panelView(track, header: true)
.frame(maxHeight: .infinity) .frame(maxWidth: panel == .Art ? .infinity : min(w, geo.size.width), maxHeight: .infinity)
.onGeometryChange(for: CGSize.self) { $0.size } action: { artBox = $0 } .onGeometryChange(for: CGSize.self) { $0.size } action: { if panel == .Art { artBox = $0 } }
.transition(.opacity.combined(with: .scale(scale: 0.96))) .transition(.opacity.combined(with: .scale(scale: 0.96)))
controls(track, wide: false, width: min(w, geo.size.width)).frame(maxWidth: w) controls(track, wide: false, width: min(w, geo.size.width)).frame(maxWidth: w)
} }
@@ -167,12 +170,13 @@ struct NowPlayingScreen: View {
if !docked { Capsule().fill(c.label3).frame(width: 36, height: 5) if !docked { Capsule().fill(c.label3).frame(width: 36, height: 5)
.frame(width: 120, height: 20).contentShape(Rectangle()) .frame(width: 120, height: 20).contentShape(Rectangle())
.onTapGesture { dismiss() } .onTapGesture { dismiss() }
.gesture(screenDrag) } .gesture(screenDrag(header: true)) }
} }
.onGeometryChange(for: CGFloat.self) { $0.size.height } action: { screenH = $0 }
.offset(y: drop) .offset(y: drop)
// On the art and the mixer: drag down anywhere to close, swipe up anywhere for the // Drag down from the top strip (or the song header) to close, so it never fights the
// queue. The queue and lyrics scroll, so there it's the song header or the grabber. // stem faders. Swipe up anywhere on the art for the queue.
.simultaneousGesture(screenDrag, including: panel == .Art || panel == .Mixer ? .all : .subviews) .simultaneousGesture(screenDrag(), including: panel == .Art ? .all : .subviews)
.environment(\.palette, c) .environment(\.palette, c)
.modifier(NpScheme(dark: c.dark, docked: docked)) .modifier(NpScheme(dark: c.dark, docked: docked))
.tint(c.label) .tint(c.label)
@@ -189,9 +193,9 @@ struct NowPlayingScreen: View {
private func panelView(_ track: Track, header: Bool) -> some View { private func panelView(_ track: Track, header: Bool) -> some View {
switch panel { switch panel {
case .Art: ArtPanel(thumb: track.thumb, playing: g.playback.playWhenReady, inset: header || !tight ? artInset : 12).contentShape(Rectangle()) case .Art: ArtPanel(thumb: track.thumb, playing: g.playback.playWhenReady, inset: header || !tight ? artInset : 12).contentShape(Rectangle())
case .Mixer: VStack(spacing: 0) { if header { MiniHeader(track: track) }; MixerPanel() } case .Mixer: VStack(spacing: 0) { if header { MiniHeader(track: track).contentShape(Rectangle()).gesture(screenDrag(header: true)) }; MixerPanel() }
case .Queue: VStack(spacing: 0) { if header { MiniHeader(track: track).contentShape(Rectangle()).gesture(screenDrag) }; QueuePanel(close: { show(.Queue) }) } case .Queue: VStack(spacing: 0) { if header { MiniHeader(track: track).contentShape(Rectangle()).gesture(screenDrag(header: true)) }; QueuePanel(close: { show(.Queue) }) }
case .Lyrics: VStack(spacing: 0) { if header { MiniHeader(track: track).contentShape(Rectangle()).gesture(screenDrag) }; LyricsPanel(track: track) } case .Lyrics: VStack(spacing: 0) { if header { MiniHeader(track: track).contentShape(Rectangle()).gesture(screenDrag(header: true)) }; LyricsPanel(track: track) }
} }
} }
@@ -243,9 +247,9 @@ struct NowPlayingScreen: View {
.padding(.top, tight ? 4 : 14) .padding(.top, tight ? 4 : 14)
HStack { HStack {
let hidden = NowPlayingButton.hidden(g.settings.hiddenNowPlaying) let hidden = NowPlayingButton.hidden(g.settings.hiddenNowPlaying)
if !hidden.contains(.Mixer) { PanelToggle(symbol: "slider.vertical.3", on: docked ? ui.deck && !ui.deckLyrics : panel == .Mixer) { show(.Mixer) } } if !hidden.contains(.Mixer) { PanelToggle(symbol: "slider.vertical.3", on: docked ? ui.showsDeck && ui.deckPage == .Stems : panel == .Mixer) { show(.Mixer) } }
if !hidden.contains(.Speed) { SpeedMenu() } if !hidden.contains(.Speed) { SpeedMenu() }
if !hidden.contains(.Route) { Button { ui.showInSettings(.Eq) } label: { routeLabel(c) }.buttonStyle(PressFade()).frame(maxWidth: .infinity) } else { Spacer() } if !hidden.contains(.Route) { Button { if docked { withAnimation(.snappy) { ui.showDeck(.Eq) } } else { ui.showInSettings(.Eq) } } label: { routeLabel(c) }.buttonStyle(PressFade()).frame(maxWidth: .infinity) } else { Spacer() }
if !hidden.contains(.AirPlay) { AirPlayButton(tint: UIColor(c.label2), active: UIColor(c.accent)).frame(width: 40, height: 40) } if !hidden.contains(.AirPlay) { AirPlayButton(tint: UIColor(c.label2), active: UIColor(c.accent)).frame(width: 40, height: 40) }
if !hidden.contains(.Karaoke) { PanelToggle(symbol: "music.mic", on: pm.karaoke) { karaoke() } } if !hidden.contains(.Karaoke) { PanelToggle(symbol: "music.mic", on: pm.karaoke) { karaoke() } }
} }
@@ -271,9 +275,9 @@ struct NowPlayingScreen: View {
// Docked, the lyrics get the deck's whole side of the hinge. // Docked, the lyrics get the deck's whole side of the hinge.
if docked { if docked {
withAnimation(.snappy(duration: 0.25)) { withAnimation(.snappy(duration: 0.25)) {
if pm.karaoke && !(ui.deck && ui.deckLyrics) { ui.showDeck(lyrics: true); return } if pm.karaoke && !(ui.showsDeck && ui.deckPage == .Lyrics) { ui.showDeck(.Lyrics); return }
pm.setKaraoke(!pm.karaoke) pm.setKaraoke(!pm.karaoke)
ui.showDeck(lyrics: pm.karaoke) ui.showDeck(pm.karaoke ? .Lyrics : .Stems)
} }
return return
} }
@@ -287,7 +291,7 @@ struct NowPlayingScreen: View {
private func show(_ to: NpPanel) { private func show(_ to: NpPanel) {
// Docked, the stems and the queue have the other side of the hinge to themselves. // Docked, the stems and the queue have the other side of the hinge to themselves.
// The queue lives only in the deck there, never a second copy beside it. // The queue lives only in the deck there, never a second copy beside it.
if docked { if to == .Mixer { withAnimation(.snappy) { ui.showDeck() } }; return } if docked { if to == .Mixer { withAnimation(.snappy) { ui.showDeck(.Stems) } }; return }
withAnimation(.spring(duration: 0.38, bounce: 0.12)) { panel = panel == to ? .Art : to } withAnimation(.spring(duration: 0.38, bounce: 0.12)) { panel = panel == to ? .Art : to }
} }
@@ -301,16 +305,19 @@ struct NowPlayingScreen: View {
} }
} }
private var screenDrag: some Gesture { /// Drag down to close: from the grabber or song header, or anywhere in the top tenth of the screen.
private func screenDrag(header: Bool = false) -> some Gesture {
DragGesture(minimumDistance: 20) DragGesture(minimumDistance: 20)
.onChanged { v in .onChanged { v in
let dy = v.translation.height let dy = v.translation.height
drop = !docked && dy > 0 && dy > abs(v.translation.width) ? dy : 0 let top = header || v.startLocation.y < max(screenH * 0.1, 56)
drop = !docked && top && dy > 0 && dy > abs(v.translation.width) ? dy : 0
} }
.onEnded { v in .onEnded { v in
let dy = v.translation.height let dy = v.translation.height
let vertical = abs(dy) > abs(v.translation.width) let vertical = abs(dy) > abs(v.translation.width)
if !docked && vertical && (dy > 120 || v.predictedEndTranslation.height > 300) { dismiss(); return } let top = header || v.startLocation.y < max(screenH * 0.1, 56)
if !docked && top && vertical && (dy > 120 || v.predictedEndTranslation.height > 300) { dismiss(); return }
withAnimation(.spring(duration: 0.3, bounce: 0.1)) { drop = 0 } withAnimation(.spring(duration: 0.3, bounce: 0.1)) { drop = 0 }
// Never from the stems: a slightly upward fader drag or scroll there kept opening the queue. // Never from the stems: a slightly upward fader drag or scroll there kept opening the queue.
if !docked && vertical && dy < -50 && panel != .Mixer && g.settings.swipeUpQueue { if !docked && vertical && dy < -50 && panel != .Mixer && g.settings.swipeUpQueue {
@@ -722,11 +729,12 @@ private struct MixerPanel: View {
.background(p.fill, in: RoundedRectangle(cornerRadius: 12, style: .continuous)) .background(p.fill, in: RoundedRectangle(cornerRadius: 12, style: .continuous))
.padding(.vertical, 8) .padding(.vertical, 8)
} else { } else {
// Every chip in one row when they fit, else Save plus a Presets menu, so none is cut off. // One sliding row of chips, running out to the screen edges so none looks cut off mid-pane.
ViewThatFits(in: .horizontal) { ScrollView(.horizontal) {
HStack(spacing: 8) { saveChips(pm); presetChips(pm, names) }.fixedSize() HStack(spacing: 8) { saveChips(pm); presetChips(pm, names) }.padding(.horizontal, 24)
HStack(spacing: 8) { saveChips(pm); presetMenu(pm, names); Spacer(minLength: 0) }
} }
.scrollIndicators(.hidden)
.padding(.horizontal, -24)
.padding(.vertical, 8) .padding(.vertical, 8)
} }
// The meters' fall is timed, so 30 fps looks the same and costs a quarter of 120. // The meters' fall is timed, so 30 fps looks the same and costs a quarter of 120.
@@ -802,33 +810,6 @@ extension MixerPanel {
} }
} }
/// The presets as one menu chip, for panes too narrow for the row.
func presetMenu(_ pm: PlaybackManager, _ names: [String]) -> some View {
let current = MixPresets.normalized(pm.mix)
let s = g.settings
let presets = MixPresets.bar(s).compactMap { p in p.build(names).map { (p, $0) } }
let active = presets.first { MixPresets.normalized($0.1) == current }?.0
return Menu {
ForEach(presets, id: \.0.id) { preset, target in
let on = MixPresets.normalized(target) == current
Button { pm.applyMix(on ? [:] : target) } label: {
if on { Label(preset.label, systemImage: "checkmark") } else { Text(preset.label) }
}
}
Divider()
Button("New Preset", systemImage: "plus") { newPreset(pm) }
Button("Edit Stems", systemImage: "slider.horizontal.3") { ui.showInSettings(.StemEditor) }
} label: {
HStack(spacing: 5) {
Text(active?.label ?? "Presets").lineLimit(1)
Image(systemName: "chevron.down").font(.caption2.weight(.bold))
}
.font(.footnote.weight(.semibold)).foregroundStyle(active != nil ? p.bg : p.label)
.padding(.horizontal, 14).frame(height: 32)
.background(active != nil ? p.label : p.fill, in: Capsule())
}
}
static let roomyRow: CGFloat = 66 static let roomyRow: CGFloat = 66
/// Shortest stacked row: name line, fader and the gap under it. /// Shortest stacked row: name line, fader and the gap under it.
static let roomyMin: CGFloat = 60 static let roomyMin: CGFloat = 60
@@ -1023,8 +1004,8 @@ struct FaderSlider: View {
// ---- deck ----------------------------------------------------------------------------------- // ---- deck -----------------------------------------------------------------------------------
/// Unfolded iPhone Duo: the stems over the queue, or the lyrics, on the other side of the hinge /// Unfolded iPhone Duo: the Now Playing tab's side of the hinge, across from docked Now Playing.
/// from Now Playing. The stems stay put and the queue scrolls in what's left under them. /// One page at a time (stems, lyrics, the queue or the EQ), each with the whole pane to itself.
struct NowPlayingDeck: View { struct NowPlayingDeck: View {
@Environment(Ui.self) private var ui @Environment(Ui.self) private var ui
@Environment(\.palette) private var base @Environment(\.palette) private var base
@@ -1035,22 +1016,21 @@ struct NowPlayingDeck: View {
var body: some View { var body: some View {
let c = tint.map { base.tinted($0) } ?? base let c = tint.map { base.tinted($0) } ?? base
let track = g.playback.current?.track let track = g.playback.current?.track
GeometryReader { geo in GeometryReader { _ in
if let track { if let track {
VStack(spacing: 0) { VStack(spacing: 0) {
header(c) header(c)
if ui.deckLyrics { Group {
LyricsPanel(track: track).frame(maxHeight: .infinity) switch ui.deckPage {
} else { case .Stems: MixerPanel(roomy: true)
let n = max(g.playback.stemNames.count, 1) case .Lyrics: LyricsPanel(track: track)
// Every stem without scrolling, leaving the queue at least a header and a few rows. case .Queue: QueuePanel(title: false)
let fit = MixerPanel.roomyChrome + CGFloat(n) * MixerPanel.roomyMin case .Eq: DeckEqPanel()
let mixH = max(min(MixerPanel.roomyHeight(n), geo.size.height - 230), min(fit, geo.size.height - 150))
MixerPanel(roomy: true).frame(height: max(mixH, 0))
Rectangle().fill(c.label3.opacity(0.35)).frame(height: 0.5).padding(.horizontal, 24).padding(.bottom, 4)
QueuePanel().frame(maxHeight: .infinity)
} }
} }
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
.transition(.opacity)
}
} else { } else {
Text("Nothing Playing").font(.title3.weight(.semibold)).foregroundStyle(c.label2) Text("Nothing Playing").font(.title3.weight(.semibold)).foregroundStyle(c.label2)
.frame(maxWidth: .infinity, maxHeight: .infinity) .frame(maxWidth: .infinity, maxHeight: .infinity)
@@ -1063,18 +1043,21 @@ struct NowPlayingDeck: View {
.modifier(NpScheme(dark: c.dark, docked: true)) .modifier(NpScheme(dark: c.dark, docked: true))
.tint(c.label) .tint(c.label)
.animation(.easeInOut(duration: 0.3), value: tint) .animation(.easeInOut(duration: 0.3), value: tint)
.animation(.snappy(duration: 0.25), value: ui.deckLyrics) .animation(.snappy(duration: 0.25), value: ui.deckPage)
.task(id: "\(track?.thumb ?? "")|\(g.settings.albumColorNowPlaying)|\(base.dark)") { .task(id: "\(track?.thumb ?? "")|\(g.settings.albumColorNowPlaying)|\(base.dark)") {
guard g.settings.albumColorNowPlaying, let thumb = track?.thumb else { tint = nil; return } guard g.settings.albumColorNowPlaying, let thumb = track?.thumb else { tint = nil; return }
tint = await albumColor(thumb, dark: base.dark) tint = await albumColor(thumb, dark: base.dark)
} }
} }
/// Stems or Lyrics, and the button that moves Now Playing to the other side of the hinge. /// The page names, and the button that moves Now Playing to the other side of the hinge.
private func header(_ c: Palette) -> some View { private func header(_ c: Palette) -> some View {
HStack(spacing: 18) { HStack(spacing: 18) {
page("Stems", on: !ui.deckLyrics, c) { ui.showDeck(lyrics: false) } ViewThatFits(in: .horizontal) {
page("Lyrics", on: ui.deckLyrics, c) { ui.showDeck(lyrics: true) } pages(c, spacing: 22)
pages(c, spacing: 14)
ScrollView(.horizontal) { pages(c, spacing: 18) }.scrollIndicators(.hidden)
}
Spacer(minLength: 0) Spacer(minLength: 0)
Button { withAnimation(.spring(duration: 0.4, bounce: 0.1)) { swap.toggle() } } label: { Button { withAnimation(.spring(duration: 0.4, bounce: 0.1)) { swap.toggle() } } label: {
Image(systemName: "arrow.left.arrow.right").font(.body.weight(.semibold)).foregroundStyle(c.label2) Image(systemName: "arrow.left.arrow.right").font(.body.weight(.semibold)).foregroundStyle(c.label2)
@@ -1086,19 +1069,27 @@ struct NowPlayingDeck: View {
.padding(.horizontal, 24).frame(height: 36) .padding(.horizontal, 24).frame(height: 36)
} }
private func page(_ title: String, on: Bool, _ c: Palette, _ action: @escaping () -> Void) -> some View { private func pages(_ c: Palette, spacing: CGFloat) -> some View {
Button(action: action) { HStack(spacing: spacing) {
Text(title).font(.headline).foregroundStyle(on ? c.label : c.label3) ForEach(DeckPage.allCases, id: \.self) { pg in
let on = ui.deckPage == pg
Button { withAnimation(.snappy(duration: 0.25)) { ui.showDeck(pg) } } label: {
Text(pg.title).font(.headline).foregroundStyle(on ? c.label : c.label3)
.lineLimit(1).fixedSize().frame(minHeight: 36).contentShape(Rectangle())
} }
.buttonStyle(.plain) .buttonStyle(.plain)
.accessibilityAddTraits(on ? .isSelected : []) .accessibilityAddTraits(on ? .isSelected : [])
} }
} }
}
}
// ---- queue ---------------------------------------------------------------------------------- // ---- queue ----------------------------------------------------------------------------------
private struct QueuePanel: View { private struct QueuePanel: View {
var close: () -> Void = {} var close: () -> Void = {}
/// The deck's header already says "Playing Next", so there it shows just the count.
var title = true
@Environment(\.palette) private var p @Environment(\.palette) private var p
private var g: AppGraph { .shared } private var g: AppGraph { .shared }
@@ -1109,8 +1100,8 @@ private struct QueuePanel: View {
VStack(spacing: 0) { VStack(spacing: 0) {
HStack(spacing: 8) { HStack(spacing: 8) {
VStack(alignment: .leading, spacing: 1) { VStack(alignment: .leading, spacing: 1) {
Text("Playing Next").font(.headline).foregroundStyle(p.label) if title { Text("Playing Next").font(.headline).foregroundStyle(p.label) }
Text(songs(upcoming.count)).font(.footnote).foregroundStyle(p.label2) Text(songs(upcoming.count)).font(title ? .footnote : .subheadline).foregroundStyle(p.label2)
} }
Spacer() Spacer()
QueueToggle(symbol: "shuffle", on: pm.shuffle, action: pm.toggleShuffle) QueueToggle(symbol: "shuffle", on: pm.shuffle, action: pm.toggleShuffle)
+4 -4
View File
@@ -7,14 +7,14 @@ settings:
base: base:
SWIFT_VERSION: "5.0" SWIFT_VERSION: "5.0"
# iOS needs a plain number for the bundle version; the label is what the app and releases show. # iOS needs a plain number for the bundle version; the label is what the app and releases show.
MARKETING_VERSION: "1.0" MARKETING_VERSION: "0.9.0"
VERSION_LABEL: "1.0 RC 4" VERSION_LABEL: "0.9.0"
CURRENT_PROJECT_VERSION: "25" CURRENT_PROJECT_VERSION: "28"
# Dev builds override these (build-ipa.sh dev) so they install next to the release app. # Dev builds override these (build-ipa.sh dev) so they install next to the release app.
APP_ID: org.cdnutter.stemify APP_ID: org.cdnutter.stemify
APP_NAME: Stemify APP_NAME: Stemify
APP_ICON: AppIcon APP_ICON: AppIcon
# "dev" shows the DEV BUILD banner across the top of the app. # Info key StemifyChannel: "dev" on dev builds (build-ipa.sh dev).
STEMIFY_CHANNEL: release STEMIFY_CHANNEL: release
targets: targets:
Stemify: Stemify:
+8 -3
View File
@@ -20,9 +20,14 @@ case $MODE in
*) echo "usage: $0 release|dev|prov" >&2; exit 1 ;; *) echo "usage: $0 release|dev|prov" >&2; exit 1 ;;
esac esac
DD=$B/dd-$MODE DD=$B/dd-$MODE
# Dev builds carry a DEV BUILD banner with their build number. # Dev builds are marked as such (Info key StemifyChannel) and put the build number in the
# version string (1.0 -> 1.0.26), so SideStore sees every dev upload as an update.
CHANNEL=$([ "$MODE" = dev ] && echo dev || echo release) CHANNEL=$([ "$MODE" = dev ] && echo dev || echo release)
# "1.0 RC 1" -> 1.0-rc1, used in file names and release tags. MV=$(sed -nE 's/^ *MARKETING_VERSION: "(.*)"/\1/p' project.yml)
BN=$(sed -nE 's/^ *CURRENT_PROJECT_VERSION: "(.*)"/\1/p' project.yml)
# iOS allows at most three numbers, so dev keeps major.minor and puts the build last (0.9.0 build 27 -> 0.9.27).
[ "$MODE" = dev ] && MV=$(echo "$MV" | cut -d. -f1-2).$BN
# "0.9.0" -> 0.9.0, "1.0 RC 1" -> 1.0-rc1, used in file names and release tags.
VERSION=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' | sed -E 's/ (rc|beta) /-\1/; s/ /-/g') VERSION=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' | sed -E 's/ (rc|beta) /-\1/; s/ /-/g')
IPA=$B/$MODE/stemify-$VERSION$SUFFIX.ipa IPA=$B/$MODE/stemify-$VERSION$SUFFIX.ipa
@@ -37,7 +42,7 @@ rm -rf $OUT && mkdir -p $OUT/Payload $B/$MODE
# xcodebuild compiles the app, the widget extension, the asset catalog and the App Intents metadata. # xcodebuild compiles the app, the widget extension, the asset catalog and the App Intents metadata.
xcodegen generate -q xcodegen generate -q
xcodebuild -project Stemify.xcodeproj -scheme Stemify -configuration Release -sdk iphoneos \ xcodebuild -project Stemify.xcodeproj -scheme Stemify -configuration Release -sdk iphoneos \
-destination generic/platform=iOS -derivedDataPath $DD APP_ID=$APP_ID APP_NAME="$APP_NAME" APP_ICON=$APP_ICON STEMIFY_CHANNEL=$CHANNEL CODE_SIGNING_ALLOWED=NO -quiet build -destination generic/platform=iOS -derivedDataPath $DD APP_ID=$APP_ID APP_NAME="$APP_NAME" APP_ICON=$APP_ICON STEMIFY_CHANNEL=$CHANNEL MARKETING_VERSION=$MV CODE_SIGNING_ALLOWED=NO -quiet build
cp -R $DD/Build/Products/Release-iphoneos/Stemify.app $APP cp -R $DD/Build/Products/Release-iphoneos/Stemify.app $APP
[ -d $EXT ] || { echo "widget extension missing" >&2; exit 1; } [ -d $EXT ] || { echo "widget extension missing" >&2; exit 1; }
+6 -5
View File
@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Publishes an IPA built by build-remote.sh. Run from DevOps with everything committed. # Publishes an IPA built by build-remote.sh. Run from DevOps with everything committed.
# publish.sh dev on the dev branch: Gitea pre-release ios-v<v>-dev.<build> + Sideload Developer (WHITE-M1 :8093, ?source=developer) # publish.sh dev on the dev branch: Gitea pre-release ios-v<v>-dev.<build> + Sideload Developer (WHITE-M1 :8093, ?source=dev)
# publish.sh release on main, only when the owner says so: Gitea release ios-v<v> + Personal (:8093, ?source=personal), then source.json # publish.sh release on main, only when the owner says so: Gitea release ios-v<v> + Personal (:8093, ?source=personal), then source.json
# Release notes come from $NOTES, else the last commit subject. prov builds are never published. # Release notes come from $NOTES, else the last commit subject. prov builds are never published.
set -euo pipefail set -euo pipefail
@@ -10,11 +10,12 @@ API=https://git.iamchrisama.com/api/v1/repos/cdnutter/stemify
T=$(sed -n 's#.*://cdnutter:\([^@]*\)@.*#\1#p' ~/.config/gitea/cdnutter.credentials | head -1) T=$(sed -n 's#.*://cdnutter:\([^@]*\)@.*#\1#p' ~/.config/gitea/cdnutter.credentials | head -1)
V=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' | sed -E 's/ (rc|beta) /-\1/; s/ /-/g') V=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' | sed -E 's/ (rc|beta) /-\1/; s/ /-/g')
BUILD=$(sed -nE 's/^ *CURRENT_PROJECT_VERSION: "(.*)"/\1/p' project.yml) BUILD=$(sed -nE 's/^ *CURRENT_PROJECT_VERSION: "(.*)"/\1/p' project.yml)
LABEL=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml)
BRANCH=$(git rev-parse --abbrev-ref HEAD) BRANCH=$(git rev-parse --abbrev-ref HEAD)
die() { echo "$*" >&2; exit 1; } die() { echo "$*" >&2; exit 1; }
case $MODE in case $MODE in
dev) WANT=dev; IPA=build/dev/$NAME-$V-dev.ipa; TAG=$TAGP$V-dev.$BUILD; PRE=true; UP=http://10.0.0.11:8093; Q='?source=developer' ;; dev) WANT=dev; IPA=build/dev/$NAME-$V-dev.ipa; TAG=$TAGP$V-dev.$BUILD; TITLE="Stemify iOS $LABEL Dev Build $BUILD"; PRE=true; UP=http://10.0.0.11:8093; Q='?source=dev' ;;
release) WANT=main; IPA=build/release/$NAME-$V.ipa; TAG=$TAGP$V; PRE=false; UP=http://10.0.0.11:8093; Q='?source=personal' ;; release) WANT=main; IPA=build/release/$NAME-$V.ipa; TAG=$TAGP$V; TITLE="Stemify iOS $LABEL"; PRE=false; UP=http://10.0.0.11:8093; Q='?source=personal' ;;
*) die "usage: $0 dev|release" ;; *) die "usage: $0 dev|release" ;;
esac esac
[ "$BRANCH" = "$WANT" ] || die "$MODE builds publish from $WANT (on $BRANCH)" [ "$BRANCH" = "$WANT" ] || die "$MODE builds publish from $WANT (on $BRANCH)"
@@ -24,8 +25,8 @@ git diff --quiet HEAD || die "uncommitted changes"
|| die "$TAG already exists, bump CURRENT_PROJECT_VERSION (dev) or VERSION_LABEL (release)" || die "$TAG already exists, bump CURRENT_PROJECT_VERSION (dev) or VERSION_LABEL (release)"
git push -q -u origin $BRANCH git push -q -u origin $BRANCH
BODY=${NOTES:-$(git log -1 --format=%s)} BODY=${NOTES:-$(git log -1 --format=%s)}
ID=$(jq -n --arg t "$TAG" --arg c "$(git rev-parse HEAD)" --arg b "$BODY" --argjson p $PRE \ ID=$(jq -n --arg t "$TAG" --arg n "$TITLE" --arg c "$(git rev-parse HEAD)" --arg b "$BODY" --argjson p $PRE \
'{tag_name:$t, target_commitish:$c, name:$t, body:$b, prerelease:$p}' | '{tag_name:$t, target_commitish:$c, name:$n, body:$b, prerelease:$p}' |
curl -fsS -H "Authorization: token $T" -H 'Content-Type: application/json' -d @- $API/releases | jq -r .id) curl -fsS -H "Authorization: token $T" -H 'Content-Type: application/json' -d @- $API/releases | jq -r .id)
curl -fsS -o /dev/null -H "Authorization: token $T" -F "attachment=@$IPA" "$API/releases/$ID/assets?name=$(basename $IPA)" curl -fsS -o /dev/null -H "Authorization: token $T" -F "attachment=@$IPA" "$API/releases/$ID/assets?name=$(basename $IPA)"
curl -fsS -o /dev/null -X POST --data-binary @$IPA "$UP/api/upload/ipa$Q" curl -fsS -o /dev/null -X POST --data-binary @$IPA "$UP/api/upload/ipa$Q"