Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c8157c489 |
No files matched your search
@@ -118,7 +118,7 @@ struct NowPlayingScreen: View {
|
|||||||
@Environment(\.verticalSizeClass) private var vSize
|
@Environment(\.verticalSizeClass) private var vSize
|
||||||
/// Folded iPhone Duo: the outer display keeps a status column down the right edge.
|
/// Folded iPhone Duo: the outer display keeps a status column down the right edge.
|
||||||
@State private var folded = false
|
@State private var folded = false
|
||||||
private var artInset: CGFloat { tight ? 18 : 28 }
|
private var artInset: CGFloat { tight ? 18 : folded ? 12 : 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 }
|
||||||
|
|
||||||
@@ -167,11 +167,12 @@ struct NowPlayingScreen: View {
|
|||||||
// Folded, the iPhone Duo keeps a status column down the right edge. Run the player under it
|
// Folded, the iPhone Duo keeps a status column down the right edge. Run the player under it
|
||||||
// (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.
|
||||||
.ignoresSafeArea(.container, edges: !docked && vSize == .regular ? .trailing : [])
|
// 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) : [])
|
||||||
// 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 : 8)
|
.padding(.bottom, tight ? 4 : folded ? 2 : 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) {
|
||||||
|
|||||||
+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: "38"
|
CURRENT_PROJECT_VERSION: "39"
|
||||||
# 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