Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d047fed04 | ||
|
|
343b8c9af8 |
No files matched your search
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
> The model(s) used: **Claude Opus 5.5, Claude Sonnet 5.5**
|
> The model(s) used: **Claude Opus 5.5, Claude Sonnet 5.5**
|
||||||
|
|
||||||
> AI contribution: **99%**, **Human contribution: 1%**
|
> AI contribution: **99%**, Human contribution: **1%**
|
||||||
|
|
||||||
# Stemify
|
# Stemify
|
||||||
|
|
||||||
|
|||||||
@@ -44,32 +44,32 @@ struct RootView: View {
|
|||||||
set: { if case .tab(let t) = $0 { ui.selectTab(t) } else { ui.showDeck() } })
|
set: { if case .tab(let t) = $0 { ui.selectTab(t) } else { ui.showDeck() } })
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The bar always holds the same slots. Unfolded with something playing, Now Playing takes
|
/// Unfolded with something playing, Now Playing leads the bar: the deck (stems, lyrics, queue,
|
||||||
/// the place of the last tab before Settings (iOS folds a sixth item into "More"), so folding
|
/// EQ) on this side of the hinge, the player docked on the other. On iOS 18 every item stays in
|
||||||
/// and unfolding swaps one item in place and nothing else moves.
|
/// the bar and only hides, so folding and unfolding can't shuffle the order.
|
||||||
private var slots: [BarItem] {
|
@ViewBuilder private var bar: some View {
|
||||||
let all = Tab.layout(g.settings.tabLayout)
|
if #available(iOS 18, *) {
|
||||||
var items = all.map { BarItem.tab($0) }
|
let shown = ui.tabs
|
||||||
guard ui.hasDeckTab else { return items }
|
|
||||||
if all.count >= Tab.maxVisible, let i = all.lastIndex(where: { $0 != .Settings }) { items[i] = .deck }
|
|
||||||
else { items.insert(.deck, at: all.lastIndex(of: .Settings) ?? items.count) }
|
|
||||||
return items
|
|
||||||
}
|
|
||||||
|
|
||||||
private var bar: some View {
|
|
||||||
TabView(selection: selection) {
|
TabView(selection: selection) {
|
||||||
ForEach(Array(slots.enumerated()), id: \.offset) { _, item in
|
SwiftUI.Tab("Now Playing", systemImage: "waveform", value: BarItem.deck) { DuoPane { NowPlayingDeck() } }
|
||||||
switch item {
|
.hidden(!ui.hasDeckTab)
|
||||||
case .deck:
|
ForEach(Tab.layout(g.settings.tabLayout), id: \.self) { t in
|
||||||
|
SwiftUI.Tab(t.rawValue, systemImage: t.icon, value: BarItem.tab(t)) { page(t) }
|
||||||
|
.hidden(!shown.contains(t))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
TabView(selection: selection) {
|
||||||
|
if ui.hasDeckTab {
|
||||||
DuoPane { NowPlayingDeck() }
|
DuoPane { NowPlayingDeck() }
|
||||||
.tabItem { Label("Now Playing", systemImage: "waveform") }
|
.tabItem { Label("Now Playing", systemImage: "waveform") }
|
||||||
.tag(item)
|
.tag(BarItem.deck)
|
||||||
case .tab(let t):
|
}
|
||||||
page(t).tabItem { Label(t.rawValue, systemImage: t.icon) }.tag(item)
|
ForEach(ui.tabs, id: \.self) { t in
|
||||||
|
page(t).tabItem { Label(t.rawValue, systemImage: t.icon) }.tag(BarItem.tab(t))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.transaction { $0.animation = nil }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private func page(_ t: Tab) -> some View {
|
private func page(_ t: Tab) -> some View {
|
||||||
|
|||||||
@@ -742,7 +742,7 @@ private struct MixerPanel: View {
|
|||||||
// Spread spare height across the stem rows instead of leaving it all at the bottom.
|
// Spread spare height across the stem rows instead of leaving it all at the bottom.
|
||||||
let count = CGFloat(max(names.count, 1))
|
let count = CGFloat(max(names.count, 1))
|
||||||
// Rows shrink to fit every stem before anything has to scroll (the folded outer display is short).
|
// Rows shrink to fit every stem before anything has to scroll (the folded outer display is short).
|
||||||
let rowH = roomy ? min(84, max(Self.roomyMin, (geo.size.height - Self.roomyChrome) / count))
|
let rowH = roomy ? min(80, max(Self.roomyMin, (geo.size.height - Self.roomyChrome) / count))
|
||||||
: min(62, max(spread ? Self.foldedMin : Self.compactMin, (geo.size.height - chipsH - 8) / count))
|
: min(62, max(spread ? Self.foldedMin : Self.compactMin, (geo.size.height - chipsH - 8) / count))
|
||||||
// Gap above the rows that centres them on the whole panel, not just the space under the chips.
|
// Gap above the rows that centres them on the whole panel, not just the space under the chips.
|
||||||
let lead = max(0, (geo.size.height - rowH * count) / 2 - chipsH)
|
let lead = max(0, (geo.size.height - rowH * count) / 2 - chipsH)
|
||||||
@@ -774,6 +774,9 @@ private struct MixerPanel: View {
|
|||||||
StemFader(name: name, setting: pm.mix[name] ?? StemSetting(), level: i < levels.count ? levels[i] : 0, enabled: stems, height: rowH, roomy: roomy)
|
StemFader(name: name, setting: pm.mix[name] ?? StemSetting(), level: i < levels.count ? levels[i] : 0, enabled: stems, height: rowH, roomy: roomy)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Wide panes keep the faders a sensible length, centred across the panel.
|
||||||
|
.frame(maxWidth: roomy ? 560 : .infinity)
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
}
|
}
|
||||||
Spacer(minLength: 8)
|
Spacer(minLength: 8)
|
||||||
}
|
}
|
||||||
@@ -842,7 +845,7 @@ extension MixerPanel {
|
|||||||
|
|
||||||
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 = 68
|
static let roomyMin: CGFloat = 60
|
||||||
/// Shortest side-by-side row, the fader's own height.
|
/// Shortest side-by-side row, the fader's own height.
|
||||||
static let compactMin: CGFloat = 30
|
static let compactMin: CGFloat = 30
|
||||||
static let foldedMin: CGFloat = 40
|
static let foldedMin: CGFloat = 40
|
||||||
@@ -918,7 +921,7 @@ struct FaderRow<Fader: View, Trailing: View>: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
if stacked {
|
if stacked {
|
||||||
// Bottom-aligned with a gap under, so each name sits clear of the meter above it.
|
// Bottom-aligned with a gap under, so each name sits clear of the meter above it.
|
||||||
VStack(alignment: .leading, spacing: 6) {
|
VStack(alignment: .leading, spacing: 2) {
|
||||||
HStack(spacing: 6) {
|
HStack(spacing: 6) {
|
||||||
if let dot { Circle().fill(dot).frame(width: 8, height: 8) }
|
if let dot { Circle().fill(dot).frame(width: 8, height: 8) }
|
||||||
Text(label).font(.subheadline.weight(.semibold)).foregroundStyle(dim ? p.label2 : p.label).lineLimit(1)
|
Text(label).font(.subheadline.weight(.semibold)).foregroundStyle(dim ? p.label2 : p.label).lineLimit(1)
|
||||||
@@ -928,7 +931,7 @@ struct FaderRow<Fader: View, Trailing: View>: View {
|
|||||||
.frame(height: 18)
|
.frame(height: 18)
|
||||||
HStack(spacing: 8) { fader; trailing }
|
HStack(spacing: 8) { fader; trailing }
|
||||||
}
|
}
|
||||||
.padding(.bottom, 10)
|
.padding(.bottom, 4)
|
||||||
.frame(height: height, alignment: .bottom)
|
.frame(height: height, alignment: .bottom)
|
||||||
} else {
|
} else {
|
||||||
row
|
row
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ settings:
|
|||||||
# 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: "0.9.0"
|
MARKETING_VERSION: "0.9.0"
|
||||||
VERSION_LABEL: "0.9.0"
|
VERSION_LABEL: "0.9.0"
|
||||||
CURRENT_PROJECT_VERSION: "32"
|
CURRENT_PROJECT_VERSION: "31"
|
||||||
# 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
|
||||||
|
|||||||
Reference in new issue
Block a user