Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09bf1b2835 |
No files matched your search
@@ -125,8 +125,6 @@ final class Ui {
|
|||||||
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.
|
||||||
if on && AppGraph.shared.playback.karaoke { deckPage = .Lyrics } else if deckPage == .Lyrics { deckPage = .Stems }
|
if on && AppGraph.shared.playback.karaoke { deckPage = .Lyrics } else if deckPage == .Lyrics { deckPage = .Stems }
|
||||||
|
|||||||
@@ -144,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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -108,10 +108,9 @@ 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.
|
/// The screen's height, for the strip at the top that a drag down closes from.
|
||||||
@@ -147,7 +146,7 @@ struct NowPlayingScreen: View {
|
|||||||
// 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)
|
||||||
// Every panel keeps the art screen's width, so switching to the stems doesn't widen it.
|
// Every panel keeps the art screen's width, so switching to the stems doesn't widen it.
|
||||||
let w = art > 0 ? min(cap, max(300, art + 2 * hPad)) : cap
|
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(maxWidth: panel == .Art ? .infinity : min(w, geo.size.width), maxHeight: .infinity)
|
.frame(maxWidth: panel == .Art ? .infinity : min(w, geo.size.width), maxHeight: .infinity)
|
||||||
|
|||||||
+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: "27"
|
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
|
||||||
|
|||||||
Reference in new issue
Block a user