Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f68aa588b | ||
|
|
406895a3f0 | ||
|
|
02539d72b1 | ||
|
|
71134ff322 | ||
|
|
d248abf143 | ||
|
|
2dca5467db | ||
|
|
887c76dc04 |
No files matched your search
@@ -1,4 +1,9 @@
|
|||||||
### ⚠️ THIS PROJECT WAS ENTIRELY VIBECODED AND IS SLOP. DO NOT PROCEED IF YOU DO NOT ALIGN WITH THESE VALUES. DO NOT COMPLAIN ABOUT IT IN PULL RELEASES, ISSUES, ETC. UNLESS THERE ARE SEVERE SECURITY RISKS. THEY WILL BE REMOVED. PROCEED AT YOUR OWN RISK! ⚠️
|
> [!CAUTION]
|
||||||
|
> This project heavily used agentic coding practices. It is not recommended to use this for production and should be heavily monitored prior to any implementation. If you do not align with agentic-coding values, do not use this application.
|
||||||
|
|
||||||
|
> The model(s) used: **Claude Opus 5.5, Claude Sonnet 5.5**
|
||||||
|
|
||||||
|
> AI contribution: **99%**, Human contribution: **1%**
|
||||||
|
|
||||||
# Stemify
|
# Stemify
|
||||||
|
|
||||||
|
|||||||
@@ -34,13 +34,13 @@ final class AppDelegate: NSObject, UIApplicationDelegate {
|
|||||||
enum Orientation {
|
enum Orientation {
|
||||||
nonisolated(unsafe) static var mask: UIInterfaceOrientationMask = .allButUpsideDown
|
nonisolated(unsafe) static var mask: UIInterfaceOrientationMask = .allButUpsideDown
|
||||||
|
|
||||||
@MainActor static func lock(_ upright: Bool) {
|
/// Folded Duo: portrait only. Unfolded Duo: landscape only. Anything else turns freely.
|
||||||
let m: UIInterfaceOrientationMask = upright ? .portrait : .allButUpsideDown
|
@MainActor static func lock(_ m: UIInterfaceOrientationMask) {
|
||||||
guard m != mask else { return }
|
guard m != mask else { return }
|
||||||
mask = m
|
mask = m
|
||||||
for case let scene as UIWindowScene in UIApplication.shared.connectedScenes {
|
for case let scene as UIWindowScene in UIApplication.shared.connectedScenes {
|
||||||
scene.keyWindow?.rootViewController?.setNeedsUpdateOfSupportedInterfaceOrientations()
|
scene.keyWindow?.rootViewController?.setNeedsUpdateOfSupportedInterfaceOrientations()
|
||||||
if upright { scene.requestGeometryUpdate(.iOS(interfaceOrientations: .portrait)) { _ in } }
|
if m != .allButUpsideDown { scene.requestGeometryUpdate(.iOS(interfaceOrientations: m)) { _ in } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,13 +131,24 @@ final class Ui {
|
|||||||
duo = true
|
duo = true
|
||||||
UserDefaults.standard.set(true, forKey: "duoSeen")
|
UserDefaults.standard.set(true, forKey: "duoSeen")
|
||||||
}
|
}
|
||||||
Orientation.lock(folded)
|
lockOrientation()
|
||||||
|
}
|
||||||
|
|
||||||
|
/// 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.
|
||||||
|
private func lockOrientation() {
|
||||||
|
if split { Orientation.lock(.landscape); return }
|
||||||
|
guard folded else { Orientation.lock(.allButUpsideDown); return }
|
||||||
|
Task { @MainActor in
|
||||||
|
try? await Task.sleep(for: .milliseconds(400))
|
||||||
|
if self.folded { Orientation.lock(.portrait) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func setSplit(_ on: Bool) {
|
func setSplit(_ on: Bool) {
|
||||||
guard on != split else { return }
|
guard on != split else { return }
|
||||||
split = on
|
split = on
|
||||||
Orientation.lock(folded)
|
lockOrientation()
|
||||||
if on {
|
if on {
|
||||||
nowPlayingOpen = false
|
nowPlayingOpen = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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() } })
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Unfolded with something playing, Now Playing leads the bar: the deck (stems, lyrics, queue,
|
/// The bar always holds the same slots. Unfolded with something playing, Now Playing takes
|
||||||
/// EQ) on this side of the hinge, the player docked on the other. On iOS 18 every item stays in
|
/// the place of the last tab before Settings (iOS folds a sixth item into "More"), so folding
|
||||||
/// the bar and only hides, so folding and unfolding can't shuffle the order.
|
/// and unfolding swaps one item in place and nothing else moves.
|
||||||
@ViewBuilder private var bar: some View {
|
private var slots: [BarItem] {
|
||||||
if #available(iOS 18, *) {
|
let all = Tab.layout(g.settings.tabLayout)
|
||||||
let shown = ui.tabs
|
var items = all.map { BarItem.tab($0) }
|
||||||
TabView(selection: selection) {
|
guard ui.hasDeckTab else { return items }
|
||||||
SwiftUI.Tab("Now Playing", systemImage: "waveform", value: BarItem.deck) { DuoPane { NowPlayingDeck() } }
|
if all.count >= Tab.maxVisible, let i = all.lastIndex(where: { $0 != .Settings }) { items[i] = .deck }
|
||||||
.hidden(!ui.hasDeckTab)
|
else { items.insert(.deck, at: all.lastIndex(of: .Settings) ?? items.count) }
|
||||||
ForEach(Tab.layout(g.settings.tabLayout), id: \.self) { t in
|
return items
|
||||||
SwiftUI.Tab(t.rawValue, systemImage: t.icon, value: BarItem.tab(t)) { page(t) }
|
|
||||||
.hidden(!shown.contains(t))
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
private var bar: some View {
|
||||||
TabView(selection: selection) {
|
TabView(selection: selection) {
|
||||||
if ui.hasDeckTab {
|
ForEach(Array(slots.enumerated()), id: \.offset) { _, item in
|
||||||
|
switch item {
|
||||||
|
case .deck:
|
||||||
DuoPane { NowPlayingDeck() }
|
DuoPane { NowPlayingDeck() }
|
||||||
.tabItem { Label("Now Playing", systemImage: "waveform") }
|
.tabItem { Label("Now Playing", systemImage: "waveform") }
|
||||||
.tag(BarItem.deck)
|
.tag(item)
|
||||||
}
|
case .tab(let t):
|
||||||
ForEach(ui.tabs, id: \.self) { t in
|
page(t).tabItem { Label(t.rawValue, systemImage: t.icon) }.tag(item)
|
||||||
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 {
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ 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,
|
case .Art: ArtPanel(thumb: track.thumb, playing: g.playback.playWhenReady, inset: header || !tight ? artInset : 12,
|
||||||
leading: folded && g.settings.foldedArtLeft).contentShape(Rectangle())
|
leading: folded && !docked && !ui.split && g.settings.foldedArtLeft).contentShape(Rectangle())
|
||||||
case .Mixer: VStack(spacing: 0) { if header { mini(track) }; MixerPanel(spread: folded) }
|
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) }) }
|
case .Queue: VStack(spacing: 0) { if header { mini(track) }; QueuePanel(close: { show(.Queue) }) }
|
||||||
case .Lyrics: VStack(spacing: 0) { if header { mini(track) }; LyricsPanel(track: track) }
|
case .Lyrics: VStack(spacing: 0) { if header { mini(track) }; LyricsPanel(track: track) }
|
||||||
@@ -215,8 +215,8 @@ struct NowPlayingScreen: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func controls(_ track: Track, wide: Bool, width: CGFloat) -> some View {
|
private func controls(_ track: Track, wide: Bool, width: CGFloat) -> some View {
|
||||||
// Folded with a panel open, the controls give the panel some of their spacing.
|
// Folded, the controls keep the tight stems-panel spacing on every panel, so the art gets the room.
|
||||||
let snug = folded && panel != .Art
|
let snug = folded
|
||||||
let pm = g.playback
|
let pm = g.playback
|
||||||
let c = tint.map { base.tinted($0) } ?? base
|
let c = tint.map { base.tinted($0) } ?? base
|
||||||
let pad: CGFloat = wide && tight ? 14 : hPad
|
let pad: CGFloat = wide && tight ? 14 : hPad
|
||||||
@@ -235,7 +235,7 @@ struct NowPlayingScreen: View {
|
|||||||
Spacer(minLength: 8)
|
Spacer(minLength: 8)
|
||||||
EllipsisButton(items: ui.menu.track(track))
|
EllipsisButton(items: ui.menu.track(track))
|
||||||
}
|
}
|
||||||
.padding(.top, tight ? 8 : 14)
|
.padding(.top, tight || snug ? 8 : 14)
|
||||||
.transition(.opacity.combined(with: .move(edge: .top)))
|
.transition(.opacity.combined(with: .move(edge: .top)))
|
||||||
}
|
}
|
||||||
ProgressVolumeBar(played: c.label, unplayed: c.label3, centerLabel: badge(track))
|
ProgressVolumeBar(played: c.label, unplayed: c.label3, centerLabel: badge(track))
|
||||||
@@ -742,7 +742,8 @@ 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(80, max(Self.roomyMin, (geo.size.height - Self.roomyChrome) / count))
|
// Roomy (the unfolded deck), the rows share every point under the chips down to the bottom.
|
||||||
|
let rowH = roomy ? max(Self.roomyMin, (geo.size.height - chipsH - 8) / 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)
|
||||||
@@ -760,7 +761,7 @@ private struct MixerPanel: View {
|
|||||||
HStack(spacing: 8) { saveChips(pm); presetChips(pm, names) }.padding(.horizontal, 24)
|
HStack(spacing: 8) { saveChips(pm); presetChips(pm, names) }.padding(.horizontal, 24)
|
||||||
}
|
}
|
||||||
.scrollIndicators(.hidden)
|
.scrollIndicators(.hidden)
|
||||||
.padding(.horizontal, -24)
|
.padding(.leading, -24).padding(.trailing, roomy ? -6 : -24)
|
||||||
.padding(.vertical, 8)
|
.padding(.vertical, 8)
|
||||||
.onGeometryChange(for: CGFloat.self) { $0.size.height } action: { chipsH = $0 }
|
.onGeometryChange(for: CGFloat.self) { $0.size.height } action: { chipsH = $0 }
|
||||||
}
|
}
|
||||||
@@ -774,13 +775,11 @@ 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)
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 24)
|
// Roomy, the faders run right up to the hinge.
|
||||||
|
.padding(.leading, 24).padding(.trailing, roomy ? 6 : 24)
|
||||||
.frame(minHeight: geo.size.height)
|
.frame(minHeight: geo.size.height)
|
||||||
}
|
}
|
||||||
.scrollIndicators(.hidden)
|
.scrollIndicators(.hidden)
|
||||||
@@ -845,7 +844,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 = 60
|
static let roomyMin: CGFloat = 68
|
||||||
/// 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
|
||||||
@@ -921,7 +920,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: 2) {
|
VStack(alignment: .leading, spacing: 6) {
|
||||||
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)
|
||||||
@@ -931,8 +930,8 @@ 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, 4)
|
// Centred in its slot, so tall rows keep even gaps above and below.
|
||||||
.frame(height: height, alignment: .bottom)
|
.frame(height: height)
|
||||||
} 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: "31"
|
CURRENT_PROJECT_VERSION: "35"
|
||||||
# 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
|
||||||
|
|||||||
+12
-1
@@ -14,7 +14,18 @@
|
|||||||
"iconURL": "https://git.iamchrisama.com/cdnutter/stemify/raw/branch/main/ios/Stemify/Resources/Assets.xcassets/AppIcon.appiconset/icon.png",
|
"iconURL": "https://git.iamchrisama.com/cdnutter/stemify/raw/branch/main/ios/Stemify/Resources/Assets.xcassets/AppIcon.appiconset/icon.png",
|
||||||
"tintColor": "#FA2D48",
|
"tintColor": "#FA2D48",
|
||||||
"category": "entertainment",
|
"category": "entertainment",
|
||||||
"versions": [],
|
"versions": [
|
||||||
|
{
|
||||||
|
"version": "0.9.0",
|
||||||
|
"marketingVersion": "0.9.0",
|
||||||
|
"buildVersion": "31",
|
||||||
|
"date": "2026-11-18T17:21:50-08:00",
|
||||||
|
"localizedDescription": "Stemify iOS 0.9.0: Duo split layout, Library Layout in Settings, folded Duo fixes.",
|
||||||
|
"downloadURL": "https://git.iamchrisama.com/cdnutter/stemify/releases/download/ios-v0.9.0/stemify-0.9.0.ipa",
|
||||||
|
"size": 2710062,
|
||||||
|
"minOSVersion": "17.0"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appPermissions": {
|
"appPermissions": {
|
||||||
"entitlements": [
|
"entitlements": [
|
||||||
"com.apple.developer.carplay-audio",
|
"com.apple.developer.carplay-audio",
|
||||||
|
|||||||
Reference in new issue
Block a user