Compare commits
18
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11dffdf9e6 | ||
|
|
a8742e7e3d | ||
|
|
ce6bce4018 | ||
|
|
4860db6f6c | ||
|
|
4c1956d569 | ||
|
|
ed0fd1d184 | ||
|
|
55f8574eaa | ||
|
|
07b5636bac | ||
|
|
88d3aa48e7 | ||
|
|
d6da47db9d | ||
|
|
4dfcfbf434 | ||
|
|
56c92e8b93 | ||
|
|
639b5368ff | ||
|
|
cfaedd06cf | ||
|
|
8f3a10df2f | ||
|
|
5868430f8a | ||
|
|
566c5f7e8f | ||
|
|
e833af2704 |
No files matched your search
@@ -35,12 +35,22 @@ enum Orientation {
|
|||||||
nonisolated(unsafe) static var mask: UIInterfaceOrientationMask = .allButUpsideDown
|
nonisolated(unsafe) static var mask: UIInterfaceOrientationMask = .allButUpsideDown
|
||||||
|
|
||||||
/// Folded Duo: portrait only. Unfolded Duo: landscape only. Anything else turns freely.
|
/// Folded Duo: portrait only. Unfolded Duo: landscape only. Anything else turns freely.
|
||||||
@MainActor static func lock(_ m: UIInterfaceOrientationMask) {
|
/// Also re-checks the window when the mask is unchanged: a request made while the app was
|
||||||
guard m != mask else { return }
|
/// in the background can be refused, which left the folded screen stuck sideways on return.
|
||||||
|
@MainActor static func lock(_ m: UIInterfaceOrientationMask, retry: Int = 6) {
|
||||||
|
let changed = m != mask
|
||||||
mask = m
|
mask = m
|
||||||
for case let scene as UIWindowScene in UIApplication.shared.connectedScenes {
|
for case let scene as UIWindowScene in UIApplication.shared.connectedScenes where scene.session.role == .windowApplication {
|
||||||
scene.keyWindow?.rootViewController?.setNeedsUpdateOfSupportedInterfaceOrientations()
|
if changed { scene.keyWindow?.rootViewController?.setNeedsUpdateOfSupportedInterfaceOrientations() }
|
||||||
if m != .allButUpsideDown { scene.requestGeometryUpdate(.iOS(interfaceOrientations: m)) { _ in } }
|
let now = UIInterfaceOrientationMask(rawValue: 1 << scene.effectiveGeometry.interfaceOrientation.rawValue)
|
||||||
|
guard m != .allButUpsideDown, !m.contains(now) else { continue }
|
||||||
|
scene.requestGeometryUpdate(.iOS(interfaceOrientations: m)) { _ in }
|
||||||
|
// The request can be dropped silently (mid-unfold, just back from the background), so check it took.
|
||||||
|
guard retry > 0 else { continue }
|
||||||
|
Task { @MainActor in
|
||||||
|
try? await Task.sleep(for: .milliseconds(500))
|
||||||
|
if mask == m { lock(m, retry: retry - 1) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ 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
|
||||||
|
/// Unfolded Duo in any orientation (a hinge is showing), even before it has turned to landscape.
|
||||||
|
private(set) var unfolded = false
|
||||||
/// Split only: the Now Playing tab (the deck) is selected instead of `tab`.
|
/// Split only: the Now Playing tab (the deck) is selected instead of `tab`.
|
||||||
var deck = true
|
var deck = true
|
||||||
/// Split only: which of the deck's pages is showing.
|
/// Split only: which of the deck's pages is showing.
|
||||||
@@ -123,7 +125,8 @@ final class Ui {
|
|||||||
/// This phone has shown the Duo's folded status column at least once (saved).
|
/// This phone has shown the Duo's folded status column at least once (saved).
|
||||||
private var duo = UserDefaults.standard.bool(forKey: "duoSeen")
|
private var duo = UserDefaults.standard.bool(forKey: "duoSeen")
|
||||||
/// Folded iPhone Duo: the outer display, kept upright.
|
/// Folded iPhone Duo: the outer display, kept upright.
|
||||||
var folded: Bool { duo && !split }
|
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.
|
/// Called with the window's side insets. Upright, only the folded Duo has a trailing one.
|
||||||
func sawInsets(trailing: CGFloat, upright: Bool) {
|
func sawInsets(trailing: CGFloat, upright: Bool) {
|
||||||
@@ -136,8 +139,21 @@ final class Ui {
|
|||||||
|
|
||||||
/// Split (unfolded) goes landscape at once. Portrait waits a moment and checks again, so a
|
/// 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.
|
/// 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.
|
||||||
|
/// 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() {
|
private func lockOrientation() {
|
||||||
if split { Orientation.lock(.landscape); return }
|
if split || unfolded { Orientation.lock(.landscape); return }
|
||||||
guard folded else { Orientation.lock(.allButUpsideDown); return }
|
guard folded else { Orientation.lock(.allButUpsideDown); return }
|
||||||
Task { @MainActor in
|
Task { @MainActor in
|
||||||
try? await Task.sleep(for: .milliseconds(400))
|
try? await Task.sleep(for: .milliseconds(400))
|
||||||
@@ -145,6 +161,12 @@ final class Ui {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func setUnfolded(_ on: Bool) {
|
||||||
|
guard on != unfolded else { return }
|
||||||
|
unfolded = on
|
||||||
|
lockOrientation()
|
||||||
|
}
|
||||||
|
|
||||||
func setSplit(_ on: Bool) {
|
func setSplit(_ on: Bool) {
|
||||||
guard on != split else { return }
|
guard on != split else { return }
|
||||||
split = on
|
split = on
|
||||||
|
|||||||
@@ -19,8 +19,21 @@ struct RootView: View {
|
|||||||
.onGeometryChange(for: CGFloat.self) { $0.safeAreaInsets.trailing } action: { ui.sawInsets(trailing: $0, upright: vSize == .regular) }
|
.onGeometryChange(for: CGFloat.self) { $0.safeAreaInsets.trailing } action: { ui.sawInsets(trailing: $0, upright: vSize == .regular) }
|
||||||
.background(p.bg.ignoresSafeArea())
|
.background(p.bg.ignoresSafeArea())
|
||||||
.onChange(of: ui.tabs) { _, _ in ui.ensureValidTab() }
|
.onChange(of: ui.tabs) { _, _ in ui.ensureValidTab() }
|
||||||
|
.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 })) {
|
.fullScreenCover(isPresented: Binding(get: { ui.nowPlayingOpen }, set: { ui.nowPlayingOpen = $0 })) {
|
||||||
NowPlayingScreen()
|
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)
|
.overlayHost(ui.overlays, level: 1)
|
||||||
.environment(ui)
|
.environment(ui)
|
||||||
.environment(\.palette, p)
|
.environment(\.palette, p)
|
||||||
@@ -43,6 +56,7 @@ struct RootView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Environment(\.verticalSizeClass) private var vSize
|
@Environment(\.verticalSizeClass) private var vSize
|
||||||
|
@Environment(\.scenePhase) private var phase
|
||||||
|
|
||||||
private enum BarItem: Hashable { case deck, tab(Tab) }
|
private enum BarItem: Hashable { case deck, tab(Tab) }
|
||||||
|
|
||||||
@@ -196,11 +210,14 @@ private struct DuoPane<Content: View>: View {
|
|||||||
@Environment(Ui.self) private var ui
|
@Environment(Ui.self) private var ui
|
||||||
@AppStorage("duoSwap") private var swap = false
|
@AppStorage("duoSwap") private var swap = false
|
||||||
@Environment(\.palette) private var p
|
@Environment(\.palette) private var p
|
||||||
|
@State private var shown = false
|
||||||
private var g: AppGraph { .shared }
|
private var g: AppGraph { .shared }
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
GeometryReader { geo in
|
GeometryReader { geo in
|
||||||
let cut = Self.cut(geo)
|
let hinge = Self.cut(geo)
|
||||||
|
// Unfolded upright (hinge across) never splits: the app turns to landscape instead.
|
||||||
|
let cut = hinge?.vertical == true ? hinge : nil
|
||||||
let flip = duoSwapEnabled && swap && cut?.vertical == true
|
let flip = duoSwapEnabled && swap && cut?.vertical == true
|
||||||
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 {
|
||||||
@@ -225,14 +242,19 @@ private struct DuoPane<Content: View>: View {
|
|||||||
// The hinge gap shows whatever is behind; paint it so the two sides read as one.
|
// The hinge gap shows whatever is behind; paint it so the two sides read as one.
|
||||||
.background(p.bg.ignoresSafeArea())
|
.background(p.bg.ignoresSafeArea())
|
||||||
.animation(.spring(duration: 0.4, bounce: 0.1), value: flip)
|
.animation(.spring(duration: 0.4, bounce: 0.1), value: flip)
|
||||||
.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.
|
/// 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
|
let size = geo.size
|
||||||
var c: Cut?
|
var c: Cut?
|
||||||
// The hinge reports inactive while the phone lies flat, so ask for inactive regions too.
|
// The hinge reports inactive while the phone lies flat, so ask for inactive regions too.
|
||||||
@@ -248,6 +270,10 @@ private struct DuoPane<Content: View>: View {
|
|||||||
let screenW = (UIApplication.shared.connectedScenes.first as? UIWindowScene)?.screen.bounds.width
|
let screenW = (UIApplication.shared.connectedScenes.first as? UIWindowScene)?.screen.bounds.width
|
||||||
let half = ((screenW ?? size.width) / 2 - geo.frame(in: .global).minX).rounded()
|
let half = ((screenW ?? size.width) / 2 - geo.frame(in: .global).minX).rounded()
|
||||||
c = Cut(vertical: true, first: half - 12, gap: 24, second: size.width - half - 12)
|
c = Cut(vertical: true, first: half - 12, gap: 24, second: size.width - half - 12)
|
||||||
|
} else if UIDevice.current.userInterfaceIdiom == .phone, size.width >= 500, size.height >= 700 {
|
||||||
|
// Unfolded but still upright: only marks the phone as unfolded so it turns to landscape.
|
||||||
|
let half = (size.height / 2).rounded()
|
||||||
|
c = Cut(vertical: false, first: half - 12, gap: 24, second: size.height - half - 12)
|
||||||
}
|
}
|
||||||
guard let c else { return nil }
|
guard let c else { return nil }
|
||||||
// A region that doesn't leave usable room on both sides isn't a hinge worth splitting at.
|
// A region that doesn't leave usable room on both sides isn't a hinge worth splitting at.
|
||||||
|
|||||||
@@ -67,8 +67,12 @@ struct NowPlayingScreen: View {
|
|||||||
/// Docked beside the hinge the pane is narrow, so the controls pack tighter. Full screen
|
/// 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.
|
/// (folded or any other iPhone) uses the roomy layout across the whole window.
|
||||||
private var tight: Bool { docked }
|
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.
|
/// 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
|
||||||
|
/// 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.
|
/// The screen's height, for the strip at the top that a drag down closes from.
|
||||||
@State private var screenH: CGFloat = 0
|
@State private var screenH: CGFloat = 0
|
||||||
@Environment(\.verticalSizeClass) private var vSize
|
@Environment(\.verticalSizeClass) private var vSize
|
||||||
@@ -91,13 +95,18 @@ struct NowPlayingScreen: View {
|
|||||||
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
|
||||||
// can't spill onto the art or under the Duo rail.
|
// 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) {
|
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)
|
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)))
|
.transition(.opacity.combined(with: .scale(scale: 0.96)))
|
||||||
controls(track, wide: true, width: col)
|
controls(track, wide: true, width: col)
|
||||||
.frame(width: col)
|
.frame(width: col)
|
||||||
|
.onGeometryChange(for: CGFloat.self) { $0.size.height } action: { ctlH = $0 }
|
||||||
.frame(maxHeight: .infinity)
|
.frame(maxHeight: .infinity)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -124,11 +133,14 @@ struct NowPlayingScreen: View {
|
|||||||
// (it only overlaps the sliding preset chips) instead of leaving a quarter of the screen empty.
|
// (it only overlaps the sliding preset chips) instead of leaving a quarter of the screen empty.
|
||||||
// Upright iPhones have no side insets, so this only changes the Duo.
|
// Upright iPhones have no side insets, so this only changes the Duo.
|
||||||
// Folded, the bottom inset is empty space too: run the controls down into it, and the art grows into the room.
|
// Folded, the bottom inset is empty space too: run the controls down into it, and the art grows into the room.
|
||||||
.ignoresSafeArea(.container, edges: !docked && vSize == .regular ? (folded ? [.trailing, .bottom] : .trailing) : [])
|
// 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, 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.
|
// 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 }
|
.onGeometryChange(for: Bool.self) { $0.safeAreaInsets.trailing > 20 } action: { folded = $0 && vSize == .regular }
|
||||||
.padding(.top, docked ? 4 : tight ? 14 : 20)
|
.padding(.top, docked ? 4 : tight ? 14 : 20)
|
||||||
.padding(.bottom, tight ? 4 : folded ? 2 : 8)
|
.padding(.bottom, runsLow ? 0 : tight ? 4 : 8)
|
||||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||||
.background(c.bg.ignoresSafeArea())
|
.background(c.bg.ignoresSafeArea())
|
||||||
.overlay(alignment: .top) {
|
.overlay(alignment: .top) {
|
||||||
@@ -153,8 +165,8 @@ struct NowPlayingScreen: View {
|
|||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
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 ? artInset : 12,
|
||||||
leading: folded && !docked && !ui.split && g.settings.foldedArtLeft).contentShape(Rectangle())
|
leading: folded && !docked && !ui.split && g.settings.foldedArtLeft, edge: hPad).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) }
|
||||||
@@ -187,7 +199,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 || snug ? 8 : 14)
|
.padding(.top, snug && !docked ? 20 : tight ? 8 : ui.isDuo && !wide ? 30 : 14)
|
||||||
.transition(.opacity.combined(with: .move(edge: .top)))
|
.transition(.opacity.combined(with: .move(edge: .top)))
|
||||||
}
|
}
|
||||||
ProgressVolumeBar(played: g.settings.albumTheme ? c.accent : c.label, unplayed: c.label3, centerLabel: badge(track))
|
ProgressVolumeBar(played: g.settings.albumTheme ? c.accent : c.label, unplayed: c.label3, centerLabel: badge(track))
|
||||||
@@ -448,6 +460,8 @@ private struct ArtPanel: View {
|
|||||||
var inset: CGFloat = 28
|
var inset: CGFloat = 28
|
||||||
/// Settings > Appearance, folded Duo only: art against the left edge.
|
/// Settings > Appearance, folded Duo only: art against the left edge.
|
||||||
var leading = false
|
var leading = false
|
||||||
|
/// The controls' side padding, which the art's left edge matches when `leading`.
|
||||||
|
var edge: CGFloat = 28
|
||||||
var body: some View {
|
var body: some View {
|
||||||
GeometryReader { geo in
|
GeometryReader { geo in
|
||||||
let side = max(min(geo.size.width, geo.size.height), 1)
|
let side = max(min(geo.size.width, geo.size.height), 1)
|
||||||
@@ -457,7 +471,8 @@ private struct ArtPanel: View {
|
|||||||
.animation(.spring(response: 0.45, dampingFraction: 0.62), value: playing)
|
.animation(.spring(response: 0.45, dampingFraction: 0.62), value: playing)
|
||||||
.frame(width: geo.size.width, height: geo.size.height, alignment: leading ? .leading : .center)
|
.frame(width: geo.size.width, height: geo.size.height, alignment: leading ? .leading : .center)
|
||||||
}
|
}
|
||||||
.padding(.horizontal, inset).padding(.vertical, 8)
|
// Against the left edge, the art starts where the controls below it do.
|
||||||
|
.padding(.leading, leading ? edge : inset).padding(.trailing, inset).padding(.vertical, 8)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1267,7 +1282,7 @@ private struct LyricsPanel: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
// Soft leaves the singer in quietly as a guide.
|
// Soft leaves the singer in quietly as a guide.
|
||||||
if !g.playback.stemNames.isEmpty {
|
if g.playback.source == .Stems && g.playback.stemNames.contains("vocals") {
|
||||||
HStack(spacing: 12) {
|
HStack(spacing: 12) {
|
||||||
Text("Vocals").font(.subheadline.weight(.semibold)).foregroundStyle(p.label2)
|
Text("Vocals").font(.subheadline.weight(.semibold)).foregroundStyle(p.label2)
|
||||||
Picker("Vocals", selection: Binding(get: { g.playback.karaokeVocals }, set: { g.playback.setKaraokeVocals($0) })) {
|
Picker("Vocals", selection: Binding(get: { g.playback.karaokeVocals }, set: { g.playback.setKaraokeVocals($0) })) {
|
||||||
|
|||||||
+3
-3
@@ -7,9 +7,9 @@ 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: "0.10.0"
|
MARKETING_VERSION: "0.10.1"
|
||||||
VERSION_LABEL: "0.10.0"
|
VERSION_LABEL: "0.10.1"
|
||||||
CURRENT_PROJECT_VERSION: "43"
|
CURRENT_PROJECT_VERSION: "52"
|
||||||
# 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
|
||||||
|
|||||||
@@ -15,6 +15,16 @@
|
|||||||
"tintColor": "#FA2D48",
|
"tintColor": "#FA2D48",
|
||||||
"category": "entertainment",
|
"category": "entertainment",
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"version": "0.10.1",
|
||||||
|
"marketingVersion": "0.10.1",
|
||||||
|
"buildVersion": "52",
|
||||||
|
"date": "2026-11-20T12:25:58-08:00",
|
||||||
|
"localizedDescription": "Folded art-left: art's left edge matches the controls' padding",
|
||||||
|
"downloadURL": "https://git.iamchrisama.com/cdnutter/stemify/releases/download/ios-v0.10.1/stemify-0.10.1.ipa",
|
||||||
|
"size": 3142623,
|
||||||
|
"minOSVersion": "17.0"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "0.10.0",
|
"version": "0.10.0",
|
||||||
"marketingVersion": "0.10.0",
|
"marketingVersion": "0.10.0",
|
||||||
|
|||||||
Reference in new issue
Block a user